path: root/apex/settings/
diff options
authorTim Rozet <>2018-05-23 16:09:47 -0400
committerTim Rozet <>2018-05-23 16:09:47 -0400
commit42a9303a21a46f9e9b1997ab4c0beceb6b0bf438 (patch)
treefe9bcf57530199d03b51d5747b10c0f59017b5ab /apex/settings/
parentdc55f3a5bc343802bc60cd901ef8adcbafd3fe33 (diff)
Default ctlplane to native VLAN
We were not setting any vlan type value for the admin network. This caused an issue when deploying and trying to use a single collapsed network (no net isolation). The issue occurred when trying to create an external neutron network. We happen to check if the phys type is flat or vlan using this attribute to decide what kind of phys type to use for the neutron network. JIRA: APEX-606 Change-Id: I4e24dd5e8b99cef920b8203b820a77d0021631cc Signed-off-by: Tim Rozet <>
Diffstat (limited to 'apex/settings/')
1 files changed, 5 insertions, 2 deletions
diff --git a/apex/settings/ b/apex/settings/
index f656683..36d143c 100644
--- a/apex/settings/
+++ b/apex/settings/
@@ -167,10 +167,13 @@ class NetworkSettings(dict):
_network = self.get_network(network)
# if vlan not defined then default it to native
- if network is not ADMIN_NETWORK:
- for role in ROLES:
+ for role in ROLES:
+ if network is not ADMIN_NETWORK:
if 'vlan' not in _network['nic_mapping'][role]:
_network['nic_mapping'][role]['vlan'] = 'native'
+ else:
+ # ctlplane network must be native
+ _network['nic_mapping'][role]['vlan'] = 'native'
cidr = _network.get('cidr')