From 8a5a2f85698721274b166daaa8f3204712baa943 Mon Sep 17 00:00:00 2001 From: yayogev Date: Sun, 13 Aug 2017 19:13:49 +0300 Subject: US2853 fix: switch clique creation - bug fix: switch-switch_pnic link was created only for uplink - clique finder: handle switch_pnic-switch_pnic links: search both directions Change-Id: I7b8b4c790212c6f527112cce6d52e40fb615ec52 Signed-off-by: yayogev --- app/discover/find_links_for_pnics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/discover/find_links_for_pnics.py') diff --git a/app/discover/find_links_for_pnics.py b/app/discover/find_links_for_pnics.py index 372ff39..3f3eb29 100644 --- a/app/discover/find_links_for_pnics.py +++ b/app/discover/find_links_for_pnics.py @@ -33,11 +33,11 @@ class FindLinksForPnics(FindLinks): pnics = self.inv.find_items({ "environment": self.get_env(), "type": "switch_pnic", - "role": "uplink" }) for pnic in pnics: - self.add_switch_pnic_to_switch_pnic_link(pnic) self.add_switch_to_pnic_link(pnic) + if "role" == "uplink": + self.add_switch_pnic_to_switch_pnic_link(pnic) def add_pnic_network_links(self, pnic): host = pnic["host"] -- cgit 1.2.3-korg