Alway set network_manager

This commit is contained in:
James Page 2015-07-14 12:11:25 +01:00
parent ece6aa7b92
commit 0a07dbb856

View File

@ -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