diff options
author | Feng Pan <fpan@redhat.com> | 2016-10-21 00:21:52 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-10-21 00:21:52 +0000 |
commit | bd5ed1ad751b4d9b937859a27d29b026cf6b429c (patch) | |
tree | b308492e0f5e4d696431f92735a0cfc25af18b84 /lib | |
parent | 1549576978e6bd56c9d376069bac86fb4f1788e9 (diff) | |
parent | bb3dc933b7fd9e04fff5a73df8534494ad980ee7 (diff) |
Merge "Add ability to configure allowed vlan ranges in deploy configuration" into stable/colorado
Diffstat (limited to 'lib')
-rw-r--r-- | lib/python/apex/network_environment.py | 6 |
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: |