Fix get subnet name in get_port_pool

Subnet name in the form of ns/{ns_name}-subnet was added
This is the form in 3.11

Change-Id: I1d1e1a5fbc0cfe4de404089110b31c4eebd95e7b
This commit is contained in:
Itzik Brown 2023-01-12 10:21:11 +02:00
parent 76f0c5ac74
commit 3acaa0062a

View File

@ -61,6 +61,7 @@ class TestPortPoolScenario(base.BaseKuryrScenarioTest):
for subnet_name in (f'{ns_uid}/{ns_name}',
f'{ns_name}/{ns_uid}',
f'{ns_name}-subnet',
f'ns/{ns_name}-subnet',
ns_name):
subnet_id = [n['id'] for n in subnets_list['subnets']
if n['name'] == subnet_name]