adding newton & above release support for nuage

Nuage Networks  Integration doesn't need to
run nuage specific code within neutron-api starting
from newton and above release.

Change-Id: I34948e59ed27499d51933934263d1a42b015e5aa
This commit is contained in:
sunnyve 2019-04-04 16:42:26 -04:00 committed by Sunny Verma
parent 088ae637c9
commit b6013977cc
2 changed files with 2 additions and 2 deletions

View File

@ -408,7 +408,7 @@ class NeutronCCContext(context.NeutronContext):
ctxt['external_network'] = config('neutron-external-network')
release = os_release('neutron-server')
cmp_release = CompareOpenStackReleases(release)
if config('neutron-plugin') in ['vsp']:
if config('neutron-plugin') == 'vsp' and cmp_release < 'newton':
_config = config()
for k, v in _config.items():
if k.startswith('vsd'):

View File

@ -409,7 +409,7 @@ def determine_packages(source=None):
if release == 'kilo' or cmp_release >= 'mitaka':
packages.append('python-networking-hyperv')
if config('neutron-plugin') == 'vsp':
if config('neutron-plugin') == 'vsp' and cmp_release < 'newton':
nuage_pkgs = config('nuage-packages').split()
packages.extend(nuage_pkgs)