diff options
author | Yaron Yogev <yaronyogev@gmail.com> | 2017-08-10 12:44:26 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-08-10 12:44:26 +0000 |
commit | f625e0fef1c402875b00431b85a445062c86cfa4 (patch) | |
tree | 3d9be752563f2c8fc0f8e722c2909be684b487e6 /app/discover/find_links_for_oteps.py | |
parent | 3b2bf902e9d4cceb2e6cf97a972a0f439a89a562 (diff) | |
parent | 72b7b6c157c643549006fea1eb4f7348581cb9a4 (diff) |
Merge "US2853 add switch-switch links"
Diffstat (limited to 'app/discover/find_links_for_oteps.py')
-rw-r--r-- | app/discover/find_links_for_oteps.py | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/app/discover/find_links_for_oteps.py b/app/discover/find_links_for_oteps.py index 84373a4..a9cc149 100644 --- a/app/discover/find_links_for_oteps.py +++ b/app/discover/find_links_for_oteps.py @@ -36,9 +36,10 @@ class FindLinksForOteps(FindLinks): link_name = vedge["name"] + "-otep" state = "up" # TBD link_weight = 0 # TBD - self.create_link(self.get_env(), vedge["host"], + self.create_link(self.get_env(), source, source_id, target, target_id, - link_type, link_name, state, link_weight) + link_type, link_name, state, link_weight, + host=vedge["host"]) def add_otep_vconnector_link(self, otep): if "vconnector" not in otep: @@ -59,9 +60,10 @@ class FindLinksForOteps(FindLinks): link_name = otep["name"] + "-" + otep["vconnector"] state = "up" # TBD link_weight = 0 # TBD - self.create_link(self.get_env(), otep["host"], + self.create_link(self.get_env(), source, source_id, target, target_id, - link_type, link_name, state, link_weight) + link_type, link_name, state, link_weight, + host=otep["host"]) def add_otep_pnic_link(self, otep): pnic = self.inv.find_items({ @@ -80,6 +82,7 @@ class FindLinksForOteps(FindLinks): link_name = otep["host"] + "pnic" + pnic["name"] state = "up" # TBD link_weight = 0 # TBD - self.create_link(self.get_env(), otep["host"], + self.create_link(self.get_env(), source, source_id, target, target_id, - link_type, link_name, state, link_weight) + link_type, link_name, state, link_weight, + host=otep["host"]) |