summaryrefslogtreecommitdiffstats
path: root/app/discover/find_links_for_pnics.py
diff options
context:
space:
mode:
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"]