Only install packages and create bridges if operating in legacy mode

This commit is contained in:
James Page 2015-07-15 09:27:44 +01:00
parent 0a07dbb856
commit 829347056a
2 changed files with 3 additions and 3 deletions

View File

@ -891,8 +891,6 @@ class NeutronContext(OSContextGenerator):
return ctxt
def __call__(self):
self._ensure_packages()
if self.network_manager not in ['quantum', 'neutron']:
return {}

View File

@ -444,6 +444,8 @@ class NeutronComputeContext(context.NeutronContext):
if not ovs_ctxt:
return {}
if config('manage-neutron-plugin-legacy-mode'):
self._ensure_packages()
self._ensure_bridge()
ovs_ctxt['local_ip'] = \