From 9d51c29acfb81ae16c72a1675d7b021d032dbdfb Mon Sep 17 00:00:00 2001 From: yayogev Date: Fri, 11 Aug 2017 00:35:14 +0300 Subject: US2853 rename pnic to host_pnic & switch_pnic fixed clique finder to work with switch-switch link type Change-Id: I4f815f77e6b4ea36669dfb58bb5f5e914fe3e1ac Signed-off-by: yayogev --- app/discover/find_links_for_vedges.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/discover/find_links_for_vedges.py') diff --git a/app/discover/find_links_for_vedges.py b/app/discover/find_links_for_vedges.py index f452d97..acafceb 100644 --- a/app/discover/find_links_for_vedges.py +++ b/app/discover/find_links_for_vedges.py @@ -16,7 +16,7 @@ class FindLinksForVedges(FindLinks): def add_links(self): self.log.info("adding link types: " + - "vnic-vedge, vconnector-vedge, vedge-pnic") + "vnic-vedge, vconnector-vedge, vedge-host_pnic") vedges = self.inv.find_items({ "environment": self.get_env(), "type": "vedge" @@ -108,7 +108,7 @@ class FindLinksForVedges(FindLinks): pass pnic = self.inv.find_items({ "environment": self.get_env(), - "type": "pnic", + "type": "host_pnic", "host": vedge["host"], "name": pname }, get_single=True) @@ -118,7 +118,7 @@ class FindLinksForVedges(FindLinks): source_id = vedge["id"] target = pnic["_id"] target_id = pnic["id"] - link_type = "vedge-pnic" + link_type = "vedge-host_pnic" link_name = "Port-" + port["id"] state = "up" if pnic["Link detected"] == "yes" else "down" link_weight = 0 # TBD -- cgit 1.2.3-korg