Skip to content

Commit

Permalink
Support more than one flat network
Browse files Browse the repository at this point in the history
The existing logic only parsed the first flat network, but having
multiple flat networks is perfectly legal.

Change-Id: I15a17aa8f72d177c5afba3d34ee978e3fe576a67
(cherry picked from commit 963d117)
  • Loading branch information
gaudenz authored and Jesse Pretorius (odyssey4me) committed Sep 30, 2016
1 parent 70214c4 commit 6fd7a88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/provider_networks
Original file line number Diff line number Diff line change
Expand Up @@ -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']:
Expand Down

0 comments on commit 6fd7a88

Please sign in to comment.