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:
parent
82934553ab
commit
76f0c5ac74
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user