diff options
author | yayogev <yaronyogev@gmail.com> | 2017-08-13 12:28:43 +0300 |
---|---|---|
committer | yayogev <yaronyogev@gmail.com> | 2017-08-13 12:28:43 +0300 |
commit | 1ae58d7b103bead4f09f735b837efa3d55b08736 (patch) | |
tree | 6af7884e85f2249b6261fb15fb36e30674276e2d /app/discover | |
parent | ebb80bbe113f17d577c1e33a5ddc8bcfc3103d6b (diff) |
US2853 fix creation of switch-switch_pnic, remove switch-host_pnic
Change-Id: Ife6f0f7a007a1c792359f56b91eb033fcfd4400a
Signed-off-by: yayogev <yaronyogev@gmail.com>
Diffstat (limited to 'app/discover')
-rw-r--r-- | app/discover/find_links_for_pnics.py | 3 |
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"] |