aboutsummaryrefslogtreecommitdiffstats
path: root/app/discover/find_links_for_oteps.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_oteps.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_oteps.py')
-rw-r--r--app/discover/find_links_for_oteps.py6
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