summaryrefslogtreecommitdiffstats
path: root/app/discover/find_links_for_vedges.py
diff options
context:
space:
mode:
authoryayogev <yaronyogev@gmail.com>2017-08-11 00:35:14 +0300
committeryayogev <yaronyogev@gmail.com>2017-08-11 00:35:14 +0300
commit9d51c29acfb81ae16c72a1675d7b021d032dbdfb (patch)
treea815ba52d062fb37c33e6ac99cfb3a6ae11a514a /app/discover/find_links_for_vedges.py
parent2414c92d87a4b807d8480328681ef066ba08e305 (diff)
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 <yaronyogev@gmail.com>
Diffstat (limited to 'app/discover/find_links_for_vedges.py')
-rw-r--r--app/discover/find_links_for_vedges.py6
1 files changed, 3 insertions, 3 deletions
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