summaryrefslogtreecommitdiffstats
path: root/src/resource_inventory
diff options
context:
space:
mode:
authorParker Berberian <pberberian@iol.unh.edu>2019-05-08 17:00:01 +0000
committerGerrit Code Review <gerrit@opnfv.org>2019-05-08 17:00:01 +0000
commit48cff65180d0584bdd0f60a4226bd36511f36161 (patch)
tree47e303a8898f60c1fc5e4f01ce430cf2a97d9316 /src/resource_inventory
parent19350b192914a2bfadac81f9885d6be236d58346 (diff)
parent3d078d2df3fac997c783435ba07e7710d087fd4b (diff)
Merge "Adds pdf and idf into api"
Diffstat (limited to 'src/resource_inventory')
-rw-r--r--src/resource_inventory/idf_templater.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/resource_inventory/idf_templater.py b/src/resource_inventory/idf_templater.py
index 26307e3..bf6eda0 100644
--- a/src/resource_inventory/idf_templater.py
+++ b/src/resource_inventory/idf_templater.py
@@ -19,8 +19,15 @@ class IDFTemplater:
"""
Utility class to create a full IDF yaml file
"""
+ net_names = ["admin", "mgmt", "private", "public"]
+ bridge_names = {
+ "admin": "br-admin",
+ "mgmt": "br-mgmt",
+ "private": "br-private",
+ "public": "br-public"
+ }
+
def __init__(self):
- self.net_names = ["admin", "mgmt", "private", "public"]
self.networks = {}
for i, name in enumerate(self.net_names):
self.networks[name] = {
@@ -117,11 +124,7 @@ class IDFTemplater:
return fuel
def get_fuel_bridges(self):
- bridges = {}
- for net in self.net_names:
- bridges[net] = "br-" + net
-
- return bridges
+ return self.bridge_names
def get_fuel_nodes(self, booking):
jumphost = booking.opnfv_config.host_opnfv_config.get(