diff options
Diffstat (limited to 'app/discover/find_links_for_oteps.py')
-rw-r--r-- | app/discover/find_links_for_oteps.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/discover/find_links_for_oteps.py b/app/discover/find_links_for_oteps.py index a9cc149..585dc19 100644 --- a/app/discover/find_links_for_oteps.py +++ b/app/discover/find_links_for_oteps.py @@ -16,7 +16,7 @@ class FindLinksForOteps(FindLinks): def add_links(self): self.log.info("adding link types: " + - "vedge-otep, otep-vconnector, otep-pnic") + "vedge-otep, otep-vconnector, otep-host_pnic") oteps = self.inv.find_items({ "environment": self.get_env(), "type": "otep" @@ -68,7 +68,7 @@ class FindLinksForOteps(FindLinks): def add_otep_pnic_link(self, otep): pnic = self.inv.find_items({ "environment": self.get_env(), - "type": "pnic", + "type": "host_pnic", "host": otep["host"], "IP Address": otep["ip_address"] }, get_single=True) @@ -78,7 +78,7 @@ class FindLinksForOteps(FindLinks): source_id = otep["id"] target = pnic["_id"] target_id = pnic["id"] - link_type = "otep-pnic" + link_type = "otep-host_pnic" link_name = otep["host"] + "pnic" + pnic["name"] state = "up" # TBD link_weight = 0 # TBD |