]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
objects.qos.policy: provide rules field, not type specific
authorIhar Hrachyshka <ihrachys@redhat.com>
Wed, 29 Jul 2015 13:25:52 +0000 (15:25 +0200)
committerIhar Hrachyshka <ihrachys@redhat.com>
Sat, 1 Aug 2015 20:16:34 +0000 (22:16 +0200)
commit582d03e4642a1eb271c187e65527b0c232548a49
tree658974c6f2f4028e4a902e1b61a8d2d58e3f4bc3
parentc9bdcb5557dbf8f782fe502dbb6c98c3550e5241
objects.qos.policy: provide rules field, not type specific

It should be forbidden to have multiple rules of the same type attached
to a policy, so the idea of having per type lists is moot.

Instead, we should have a single list of all rules that belong to the
policy.

Also fixed a test that validated a single transaction to actually work
with multiple autonested transactions applied.

Partially-Implements: blueprint quantum-qos-api
Change-Id: Ia152b3ff385d2aa0cf40664ef039265b046b1d17
doc/source/devref/quality_of_service.rst
neutron/extensions/qos.py
neutron/objects/qos/policy.py
neutron/objects/qos/rule.py
neutron/tests/api/test_qos.py
neutron/tests/unit/objects/qos/test_policy.py
neutron/tests/unit/objects/qos/test_rule.py