summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/python/apex/network_environment.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/python/apex/network_environment.py b/lib/python/apex/network_environment.py
index d96fa44e..61810d80 100644
--- a/lib/python/apex/network_environment.py
+++ b/lib/python/apex/network_environment.py
@@ -126,6 +126,12 @@ class NetworkEnvironment(dict):
}]
priv_cidr = net_settings[PRIVATE_NETWORK]['cidr']
self[param_def]['TenantNetCidr'] = str(priv_cidr)
+ if 'vlan_id_range' in net_settings[PRIVATE_NETWORK].keys():
+ tenant_vlan_range = \
+ net_settings[PRIVATE_NETWORK]['vlan_id_range'].split(',')
+ self[param_def]['NeutronNetworkVLANRanges'] = \
+ "datacentre:" + tenant_vlan_range[0] + ':' \
+ + tenant_vlan_range[1]
if priv_cidr.version == 6:
postfix = '/tenant_v6.yaml'
else: