neutron-lib: use L3 constant

Make use of the L3 constants from neutron-lib

NeutronLibImpact

Partially-implements: blueprint neutron-lib

Change-Id: I141469aac6ea01f4d9c90d9f533e466db8dc5fcf
This commit is contained in:
Gary Kotton
2016-11-06 01:39:30 -08:00
parent 2cef50bdb0
commit 526816d49c
10 changed files with 22 additions and 23 deletions

View File

@@ -11,6 +11,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from neutron_lib import constants
from tempest.lib import exceptions as lib_exc
from tempest import test
import testtools
@@ -45,7 +46,7 @@ class RoutersFlavorTestCase(base.BaseRouterTest):
cls.flavor = cls.create_flavor(
name='special_flavor',
description='econonomy class',
service_type='L3_ROUTER_NAT')
service_type=constants.L3)
cls.admin_client.create_flavor_service_profile(
cls.flavor['id'], sp['service_profile']['id'])
cls.flavor_service_profiles.append((cls.flavor['id'],
@@ -63,7 +64,7 @@ class RoutersFlavorTestCase(base.BaseRouterTest):
cls.prem_flavor = cls.create_flavor(
name='better_special_flavor',
description='econonomy comfort',
service_type='L3_ROUTER_NAT')
service_type=constants.L3)
cls.admin_client.create_flavor_service_profile(
cls.prem_flavor['id'], sp['service_profile']['id'])
cls.flavor_service_profiles.append((cls.prem_flavor['id'],