fix bad remove sec_group disable
This commit is contained in:
parent
a1227fc40f
commit
dfaded5874
@ -47,6 +47,10 @@ def _neutron_api_settings():
|
|||||||
bool_from_string(rdata['neutron-security-groups'])
|
bool_from_string(rdata['neutron-security-groups'])
|
||||||
})
|
})
|
||||||
|
|
||||||
|
# Override with configuration if set to true
|
||||||
|
if config('disable-security-groups'):
|
||||||
|
neutron_settings['neutron_security_groups'] = False
|
||||||
|
|
||||||
net_dev_mtu = rdata.get('network-device-mtu')
|
net_dev_mtu = rdata.get('network-device-mtu')
|
||||||
if net_dev_mtu:
|
if net_dev_mtu:
|
||||||
neutron_settings['network_device_mtu'] = net_dev_mtu
|
neutron_settings['network_device_mtu'] = net_dev_mtu
|
||||||
|
@ -167,7 +167,7 @@ class OVSPluginContextTest(CharmTestCase):
|
|||||||
napi_ctxt = context.OVSPluginContext()
|
napi_ctxt = context.OVSPluginContext()
|
||||||
expect = {
|
expect = {
|
||||||
'neutron_alchemy_flags': {},
|
'neutron_alchemy_flags': {},
|
||||||
'neutron_security_groups': True,
|
'neutron_security_groups': False,
|
||||||
'verbose': True,
|
'verbose': True,
|
||||||
'local_ip': '127.0.0.15',
|
'local_ip': '127.0.0.15',
|
||||||
'veth_mtu': 1500,
|
'veth_mtu': 1500,
|
||||||
|
Loading…
Reference in New Issue
Block a user