FIX: provider_networks module for multiple vlans
Updated the provider networks library to process multiple ranges. The patch simply moves the vlan process stanza to ensure any network with a vlan range is processed correctly. Change-Id: Ifaa9c7eb8432644b95052cd2e48c1bbc5cd0e0b7 Co-Authored-By: Aaron Segura <aaron.segura@RACKSPACE.COM> Closes-Bug: #1522149 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
parent
5371a0eb93
commit
dc30a8516d
@ -174,12 +174,12 @@ class ProviderNetworksParsing(object):
|
||||
if net['network']['type'] == "vlan":
|
||||
if "vlan" not in self.network_types:
|
||||
self.network_types.append('vlan')
|
||||
for vlan_range in net['network']['range'].split(','):
|
||||
self.network_vlan_ranges.append(
|
||||
'%s:%s' % (
|
||||
net['network']['net_name'], vlan_range.strip()
|
||||
)
|
||||
for vlan_range in net['network']['range'].split(','):
|
||||
self.network_vlan_ranges.append(
|
||||
'%s:%s' % (
|
||||
net['network']['net_name'], vlan_range.strip()
|
||||
)
|
||||
)
|
||||
elif net['network']['type'] == "vxlan":
|
||||
if "vxlan" not in self.network_types:
|
||||
self.network_types.append('vxlan')
|
||||
|
Loading…
x
Reference in New Issue
Block a user