]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Raise QuotaResourceUnknown in the quota engine
authorSalvatore Orlando <salv.orlando@gmail.com>
Tue, 10 Mar 2015 20:37:07 +0000 (13:37 -0700)
committerSalvatore Orlando <salv.orlando@gmail.com>
Wed, 11 Mar 2015 11:58:46 +0000 (04:58 -0700)
commitf371f29cd0ed0fc3d8c4811dce8e2c31f39a0673
treef7f9d87d23260466f8a83d83a922f85d32e8d2bb
parent982698b4895d2ea635fa5d7a6af4105bc0ee7ec2
Raise QuotaResourceUnknown in the quota engine

This patch lets the quota engine verify whether it manages a resource
for which a limit is being checked.

So far this check has been delegated to the drivers. This is
conceptually wrong and also lead to code duplication.

Unit tests and some docstrings are also fixed accordingly as a
part of this patch.

Closes-Bug: #1430519
Related to blueprint better-quotas

Change-Id: If1467881f13e30afa53a23b904f8eae5c7264834
neutron/db/quota_db.py
neutron/quota.py
neutron/tests/unit/db/test_quota_db.py
neutron/tests/unit/test_quota_ext.py