vmware-nsx/quantum/api/v2
Yong Sheng Gong 119df30750 Add quota per-tenant.
blueprint quantum-api-quotas

We implement it as an extension for linux bridge and ovs plugins.
We also expose the /quotas/Xx url to client to operate the quota.
We need admin role to show other tenant's quota, and to update quota data.
Any user can show its own tenant's quota. An DB table is used to save the
quota for each tenant.

To use it, we have in quantum.conf:
quota_driver = quantum.extensions._quotav2_driver.DbQuotaDriver

The default quotas for each tenant are defined in quantum.conf too.

In addition, modify extension framework to allow exposing a new resource and
its controler. The extension can check the environment, such as configuration
in global cfg.CONF to decide if it can be enabled.

Also, we can define enabled extensions for each plugin in extensions.py
New resources can be put into quota framework via quota_items in nova.conf

Change-Id: I54d6107fdb2808cdae1a40b501ed8c7f379dedee
2012-08-14 23:27:56 +08:00
..
__init__.py Add API v2 support 2012-06-11 10:36:10 -05:00
attributes.py Merge "Implementation of second phase of provider extension." 2012-08-14 10:45:50 +00:00
base.py Add quota per-tenant. 2012-08-14 23:27:56 +08:00
resource.py Reorder imports by full module path 2012-06-21 20:13:15 +08:00
router.py Fix bulk create operations and make them atomic. 2012-08-13 09:31:38 -07:00