]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add policy and policy rule belongs check
authorgong yong sheng <gong.yongsheng@99cloud.net>
Tue, 25 Aug 2015 08:21:39 +0000 (16:21 +0800)
committergong yong sheng <gong.yongsheng@99cloud.net>
Fri, 28 Aug 2015 07:29:52 +0000 (15:29 +0800)
commitc28b8a5ca6ddf1def9b74d4ceb98b9c7b192d696
treec71e2e2ef58e2dd680c00b85b8812d464a8d4c5c
parent3703a1d4b0845795ef028fc3334a1ef3b5cc4471
Add policy and policy rule belongs check

before updating and deletion of a qos rule under a policy,
we check if the qos is binding to the policy to avoid users
operating on policy rules binding to other policy.

Change-Id: I04723fa9dd37409cb211c35e701f352419b2d6fa
Closes-bug: #1485993
neutron/objects/qos/policy.py
neutron/services/qos/qos_plugin.py
neutron/tests/unit/services/qos/test_qos_plugin.py