Use L3 constant from neutron lib

This replaces the neutron constant L3_ROUTER_NAT

This is relevant from neutron-lib 1.0.0

Change-Id: I29ae40a18e4eda82079753b78334e834b183973c
This commit is contained in:
Gary Kotton 2016-11-06 01:17:03 -08:00
parent a6f9a1f8e2
commit d552e8c409
2 changed files with 3 additions and 3 deletions

View File

@ -2241,7 +2241,7 @@ class NsxVPluginV2(addr_pair_db.AllowedAddressPairsMixin,
fl_db = flavors_plugin.FlavorsPlugin.get_flavor(
flv_plugin, context, flavor_id)
if fl_db['service_type'] != plugin_const.L3_ROUTER_NAT:
if fl_db['service_type'] != constants.L3:
raise flavors.InvalidFlavorServiceType(
service_type=fl_db['service_type'])

View File

@ -4813,7 +4813,7 @@ class TestRouterFlavorTestCase(extension.ExtensionTestCase,
if create_az is not None:
router_data['availability_zone_hints'] = [create_az]
flavor_data = {'service_type': plugin_const.L3_ROUTER_NAT,
flavor_data = {'service_type': constants.L3,
'enabled': True,
'service_profiles': ['profile_id']}
@ -4910,7 +4910,7 @@ class TestRouterFlavorTestCase(extension.ExtensionTestCase,
if create_az is not None:
router_data['availability_zone_hints'] = [create_az]
flavor_data = {'service_type': plugin_const.L3_ROUTER_NAT,
flavor_data = {'service_type': constants.L3,
'enabled': True,
'service_profiles': ['profile_id']}