]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
objects.qos.policy: forbid deletion when attached to a port or a network
authorIhar Hrachyshka <ihrachys@redhat.com>
Sun, 2 Aug 2015 15:27:56 +0000 (17:27 +0200)
committerIhar Hrachyshka <ihrachys@redhat.com>
Sun, 2 Aug 2015 18:23:03 +0000 (20:23 +0200)
commit52f60ba6c7319b139e2d6e17a2d3fa07344786b3
tree5a767eb39fab2d5dc5840d5efe4b3a0f07a81931
parent403662fd3aef5742f517965db8f55f55eb2409bf
objects.qos.policy: forbid deletion when attached to a port or a network

Similar to security groups, we forbid removing a policy that is attached
to any port or a network.

Change-Id: I0854c8ebc3b690c9195beeca92fe37f1121b410a
Partially-Implements: blueprint quantum-qos-api
neutron/common/exceptions.py
neutron/objects/qos/policy.py
neutron/tests/api/test_qos.py
neutron/tests/unit/objects/qos/test_policy.py
neutron/tests/unit/services/qos/test_qos_plugin.py