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:
parent
a6f9a1f8e2
commit
d552e8c409
@ -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'])
|
||||
|
||||
|
@ -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']}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user