diff options
author | Parker Berberian <pberberian@iol.unh.edu> | 2019-05-08 17:00:01 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2019-05-08 17:00:01 +0000 |
commit | e4d40617fd6ebc6ef255ff9d00f586261c1d309f (patch) | |
tree | 51a74cb1d218a8c03d389b2e844355961fe97c29 /dashboard/src/resource_inventory | |
parent | 0cc66d9fa833f12c23bfe7cf79d8276ef68a8cf7 (diff) | |
parent | b906ab1a020858d99577bd4b6476c6aec965330b (diff) |
Merge "Adds pdf and idf into api"
Diffstat (limited to 'dashboard/src/resource_inventory')
-rw-r--r-- | dashboard/src/resource_inventory/idf_templater.py | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/dashboard/src/resource_inventory/idf_templater.py b/dashboard/src/resource_inventory/idf_templater.py index 26307e3..bf6eda0 100644 --- a/dashboard/src/resource_inventory/idf_templater.py +++ b/dashboard/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( |