aboutsummaryrefslogtreecommitdiffstats
path: root/app/discover/find_links_for_pnics.py
diff options
context:
space:
mode:
authoryayogev <yaronyogev@gmail.com>2017-08-13 19:13:49 +0300
committeryayogev <yaronyogev@gmail.com>2017-08-13 19:14:37 +0300
commit8a5a2f85698721274b166daaa8f3204712baa943 (patch)
treee3539c9a0339119a41447f5a067182185fbe82f7 /app/discover/find_links_for_pnics.py
parente97b4b77236b225b14f6f1eb7ac7bb88663889f8 (diff)
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 <yaronyogev@gmail.com>
Diffstat (limited to 'app/discover/find_links_for_pnics.py')
-rw-r--r--app/discover/find_links_for_pnics.py4
1 files changed, 2 insertions, 2 deletions
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"]