Fix name for legacy SNAT ports

Minor fix to convention used for legacy SNAT port names.

Change-Id: Idd36bb4877ca7819dc5033f0e629d1dd89bafcc0
This commit is contained in:
Thomas Bachman 2018-12-03 13:37:34 +00:00 committed by Thomas Bachman
parent 6e25d56088
commit 4f3ac79544
2 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ DEFAULT_HOST_DOMAIN = '*'
LEGACY_SNAT_NET_NAME_PREFIX = 'host-snat-network-for-internal-use-'
LEGACY_SNAT_SUBNET_NAME = 'host-snat-pool-for-internal-use'
LEGACY_SNAT_PORT_NAME = 'host-snat-pool-for-internal-use'
LEGACY_SNAT_PORT_NAME = 'host-snat-pool-port-for-internal-use'
LEGACY_SNAT_PORT_DEVICE_OWNER = 'host-snat-pool-port-device-owner-internal-use'
# TODO(kentwu): Move this to AIM utils maybe to avoid adding too much

View File

@ -937,7 +937,7 @@ class TestNeutronMapping(AimValidationTestCase):
fixed_ips = [{'subnet_id': leg_subnet_id, 'ip_address': '66.66.66.5'}]
leg_port = self._make_port(
self.fmt, leg_net_id, fixed_ips=fixed_ips,
name='host-snat-pool-for-internal-use',
name='host-snat-pool-port-for-internal-use',
device_owner='host-snat-pool-port-device-owner-internal-use'
)['port']
leg_port_id = leg_port['id']