summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/discover/find_links_for_pnics.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/discover/find_links_for_pnics.py b/app/discover/find_links_for_pnics.py
index 3ca6b7e..372ff39 100644
--- a/app/discover/find_links_for_pnics.py
+++ b/app/discover/find_links_for_pnics.py
@@ -27,7 +27,6 @@ class FindLinksForPnics(FindLinks):
for pnic in pnics:
self.add_pnic_network_links(pnic)
self.add_host_pnic_to_switch_pnic_link(pnic)
- self.add_switch_to_pnic_link(pnic)
self.log.info("adding links of type: switch_pnic-switch_pnic, "
"switch-switch_pnic")
@@ -116,7 +115,7 @@ class FindLinksForPnics(FindLinks):
switch=leaf_pnic['switch'])
def add_switch_to_pnic_link(self, pnic):
- switch = self.inv.get_by_id(self.get_env(), pnic['id'])
+ switch = self.inv.get_by_id(self.get_env(), pnic['parent_id'])
if not switch:
return
source = switch["_id"]