Support more than one flat network

The existing logic only parsed the first flat network, but having
multiple flat networks is perfectly legal.

Change-Id: I15a17aa8f72d177c5afba3d34ee978e3fe576a67
This commit is contained in:
Gaudenz Steinlin
2016-09-28 09:55:42 +02:00
parent 544adfe686
commit 963d11713e

View File

@@ -192,9 +192,9 @@ class ProviderNetworksParsing(object):
elif net['network']['type'] == "flat":
if "flat" not in self.network_types:
self.network_types.append('flat')
self.network_flat_networks.append(
net['network']['net_name']
)
self.network_flat_networks.append(
net['network']['net_name']
)
# Create the network mappings
if net['network']['type'] not in ['raw', 'vxlan']: