Fix get subnet name in get_port_pool

Subnet name in the form of ns_uid/ns_name was added

Change-Id: Ibbca8bf7ddc1550eb6e0c3f0fcebbc31c9b77e4c
This commit is contained in:
Itzik Brown 2023-01-01 12:34:32 +02:00 committed by Michał Dulko
parent 82934553ab
commit 76f0c5ac74
1 changed files with 3 additions and 2 deletions

View File

@ -58,8 +58,9 @@ class TestPortPoolScenario(base.BaseKuryrScenarioTest):
ns_name = namespace.metadata.name
ns_uid = namespace.metadata.uid
for subnet_name in (f'{ns_name}/{ns_uid}',
f'ns/{ns_name}-subnet',
for subnet_name in (f'{ns_uid}/{ns_name}',
f'{ns_name}/{ns_uid}',
f'{ns_name}-subnet',
ns_name):
subnet_id = [n['id'] for n in subnets_list['subnets']
if n['name'] == subnet_name]