Alway set network_manager
This commit is contained in:
parent
ece6aa7b92
commit
0a07dbb856
@ -423,17 +423,15 @@ def network_manager():
|
||||
Obtain the network manager advertised by nova-c-c, renaming to Quantum
|
||||
if required
|
||||
'''
|
||||
manager = None
|
||||
if neutron_plugin_legacy_mode():
|
||||
manager = _network_config().get('network_manager')
|
||||
if manager:
|
||||
manager = manager.lower()
|
||||
if manager not in ['quantum', 'neutron']:
|
||||
return manager
|
||||
if os_release('nova-common') in ['folsom', 'grizzly']:
|
||||
return 'quantum'
|
||||
else:
|
||||
return 'neutron'
|
||||
manager = _network_config().get('network_manager')
|
||||
if manager:
|
||||
manager = manager.lower()
|
||||
if manager not in ['quantum', 'neutron']:
|
||||
return manager
|
||||
if os_release('nova-common') in ['folsom', 'grizzly']:
|
||||
return 'quantum'
|
||||
else:
|
||||
return 'neutron'
|
||||
return manager
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user