Merge "Fix the tests for filtering with qos_policy_id"
This commit is contained in:
commit
f6bcfe1d89
@ -166,12 +166,12 @@ class ClientFixture(fixtures.Fixture):
|
|||||||
|
|
||||||
def detach_and_delete_policy():
|
def detach_and_delete_policy():
|
||||||
qos_policy_id = policy['policy']['id']
|
qos_policy_id = policy['policy']['id']
|
||||||
ports_with_policy = self.client.list_ports(
|
ports_with_policy = self.client.list_ports()['ports']
|
||||||
qos_policy_id=qos_policy_id)['ports']
|
|
||||||
for port in ports_with_policy:
|
for port in ports_with_policy:
|
||||||
self.client.update_port(
|
if qos_policy_id == port['qos_policy_id']:
|
||||||
port['id'],
|
self.client.update_port(
|
||||||
body={'port': {'qos_policy_id': None}})
|
port['id'],
|
||||||
|
body={'port': {'qos_policy_id': None}})
|
||||||
self.client.delete_qos_policy(qos_policy_id)
|
self.client.delete_qos_policy(qos_policy_id)
|
||||||
|
|
||||||
# NOTE: We'll need to add support for detaching from network once
|
# NOTE: We'll need to add support for detaching from network once
|
||||||
|
Loading…
Reference in New Issue
Block a user