neutron/neutron
Salvatore Orlando 5fe6f8015a Pecan: fix quota management
This patch fixes quota management APIs in the Pecan framework.
To this aim:

1) an ad-hoc pair of collection/item controllers are introduced
   for the quota resource; as the new controllers have been added
   in a separate module, the neutron.pecan_wsgi.controllers.utils
   module has been added as well for helpers, routines and classes
   used by all pecan controllers;
2) the quota API extension is made pecan-aware, meaning that it
   simply returns a Pecan controller instance rather than deferring
   the task to the startup process that builds controllers using the
   home-grown WSGI framework ext manager;
3) the quota resource is now "almost" a standard neutron resource;
   unfortunately since it does not yet have its own service plugin a
   special provision is made in the attribute population hook in
   order to ensure the object is loaded for allowing correct
   policy enforcement.
4) Functional tests for the quota controller have been added.

Closes-Bug: #1505843

Change-Id: I44a1fd73f678e493d5b1163e5f183d9efdc678ac
2016-01-13 09:10:25 -08:00
..
agent Merge "Fix uuid passing in disable_isolated_metadata_proxy" 2016-01-09 04:24:34 +00:00
api Merge "Pecan: Streamline request body processing" 2016-01-12 01:11:13 +00:00
callbacks Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
cmd Check missed ip6tables utility 2016-01-04 19:19:56 +08:00
common Merge "DVR: optimize check_ports_exist_on_l3_agent()" 2016-01-11 14:34:16 +00:00
core_extensions Forbid attaching rules if policy isn't accessible 2015-08-12 09:52:33 +00:00
db Scope get_tenant_quotas by tenant_id 2016-01-13 14:56:18 +00:00
debug Make neutron-debug command follow cliff command convention 2016-01-09 03:38:19 +09:00
extensions Pecan: fix quota management 2016-01-13 09:10:25 -08:00
hacking Unify assertEqual for empty usages 2016-01-07 10:06:35 +00:00
ipam Remove references to model_base through models_v2 2016-01-06 16:12:29 -07:00
locale Imported Translations from Zanata 2016-01-06 06:29:46 +00:00
notifiers Add option for nova endpoint type 2015-12-10 08:40:36 +00:00
objects Add test for Neutron object versions 2016-01-06 10:34:03 +00:00
openstack Remove openstack.common._i18n from Neutron 2016-01-04 17:58:46 +00:00
pecan_wsgi Pecan: fix quota management 2016-01-13 09:10:25 -08:00
plugins Merge "Log INFO message when setting admin state up flag to False for OVS port" 2016-01-13 02:52:19 +00:00
quota ML2: Add tests to validate quota usage tracking 2015-12-09 15:17:23 -08:00
scheduler Don't call add_ha_port inside a transaction 2015-12-24 09:55:06 -08:00
server Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
services Fix meter label rule creation 2016-01-06 14:08:07 +00:00
tests Pecan: fix quota management 2016-01-13 09:10:25 -08:00
__init__.py Deprecate _ builtin translation function 2015-12-06 19:39:20 +09:00
_i18n.py Move i18n to _i18n, as per oslo_i18n guidelines 2015-12-01 19:29:10 -07:00
auth.py Consume ConfigurableMiddleware from oslo_middleware 2015-10-08 17:59:43 +00:00
context.py Trival: Remove unused logging import 2015-12-26 12:49:56 +08:00
i18n.py Move i18n to _i18n, as per oslo_i18n guidelines 2015-12-01 19:29:10 -07:00
manager.py Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
neutron_plugin_base_v2.py Fix misspelled word in docstring 2015-11-20 17:08:47 +00:00
opts.py Use keystoneauth instead of keystoneclient 2015-12-06 15:09:42 +00:00
policy.py Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
service.py Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
version.py
worker.py Some minor misspellings in comment block. 2015-11-24 00:01:21 -06:00
wsgi.py Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00