From 89461dc2175d43b8f26651c684756522cebbcc7d Mon Sep 17 00:00:00 2001 From: Artur Zdolinski Date: Thu, 13 Apr 2023 00:44:45 +0200 Subject: [PATCH] create_switch_system_links missing return As it doesn't have a return - it always is None. In the fix - it will return link IDs. ie: {'ids': ['Leaf1<->Server3(eth0)[1]', 'Leaf2<->Server3(eth1)[1]', 'Leaf1<->Server3(lag0)[1]', 'Leaf2<->Server3(lag0)[1]']} --- aos/blueprint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aos/blueprint.py b/aos/blueprint.py index d367f48..06db22d 100644 --- a/aos/blueprint.py +++ b/aos/blueprint.py @@ -972,7 +972,7 @@ def get_all_tor_nodes(self, bp_id): def create_switch_system_links(self, bp_id: str, data: dict): uri = f"/api/blueprints/{bp_id}/switch-system-links" - self.rest.json_resp_post(uri, data=data) + return self.rest.json_resp_post(uri, data=data) def get_cabling_map(self, bp_id: str) -> Dict: """