]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Deprecate quota_items, register resources upon REST initialization
authorSalvatore Orlando <salv.orlando@gmail.com>
Sat, 9 May 2015 00:03:55 +0000 (17:03 -0700)
committerSalvatore Orlando <salv.orlando@gmail.com>
Mon, 11 May 2015 11:03:40 +0000 (04:03 -0700)
commita6b6e5597f32dfb0d92dc168d91e83d6daafe227
treebd0716d36f3562e664843b5ba4506ea08b112b88
parent0699836be60939e3317d3f006a7fccf9d6385535
Deprecate quota_items, register resources upon REST initialization

Register 'core' resources when the respective rest controllers are
instantiated, rather than at module load time.

Since in this way there will not be any need to iterate over
quota_items, the option is being deprecated.

This patch does not supply unit tests as the already-existing
routine for registering a resource from quota_items is being
deprecated as well (and was not covered by any unit test beforehand).

DocImpact

Change-Id: Icdb744adfd86d38363239a454ccf04f3c6b9c158
Closes-Bug: #1453322
etc/neutron.conf
neutron/api/v2/router.py
neutron/quota.py
neutron/tests/unit/extensions/test_quotasv2.py