Neutron shared routines and utilities.
Go to file
Boden R 5f2f51d83a class methods and sub resources in base api ext
Today the get_extended_resources method of our APIExtensionDescriptor
class does not account for the SUB_RESOURCE_ATTRIBUTE_MAP and as a
result callers of update_attributes_map will also not see the sub
resources.

This patch updates get_extended_resources to include the sub resources
as well.

Note that today in neutron, we have both uses:
- neutron.extensions.qos.Qos.get_extended_resources uses sub resources.
- neutron.extensions.flavors.Flavors.get_extended_resources does not
use the sub resource map.

In addition this patch changes the methods defined in the
APIExtensionDescriptor to be class methods rather than instance methods.
There is no real instance data to maintain and in addition consumers
need a way to access the update_attributes_map method without having
to import and create a concrete neutron extension instance [1].

[1] http://codesearch.openstack.org/?q=%5C(%5C)%5C.update_attributes_map%5C(

Change-Id: I8ae11633962a48de6e8559b85447b8c8c753d705
2017-11-16 20:23:50 +00:00
api-ref/source add api ref for agents 2017-11-02 10:35:19 -06:00
doc/source Merge "add api ref and doc link validation to release" 2017-10-05 02:12:11 +00:00
neutron_lib class methods and sub resources in base api ext 2017-11-16 20:23:50 +00:00
releasenotes class methods and sub resources in base api ext 2017-11-16 20:23:50 +00:00
tools Parameter modifications of edit-constraints 2017-08-22 10:03:51 +02:00
.coveragerc Improvements to tox envs 2015-12-19 01:00:22 -05:00
.gitignore Fix unit test failures due to switch to testr changes 2017-09-14 08:17:35 -07:00
.gitreview Added .gitreview 2015-11-19 19:54:39 +00:00
.mailmap Initial cookiecutter commit 2015-11-20 17:24:43 -07:00
.stestr.conf Fix unit test failures due to switch to testr changes 2017-09-14 08:17:35 -07:00
.testr.conf Improvements to tox envs 2015-12-19 01:00:22 -05:00
CONTRIBUTING.rst Merge "Update links in CONTRIBUTING.rst" 2017-10-05 20:47:37 +00:00
HACKING.rst Update the documentation link for doc migration 2017-07-20 15:46:41 +00:00
LICENSE Initial cookiecutter commit 2015-11-20 17:24:43 -07:00
README.rst Update links in README 2017-09-06 14:25:53 +08:00
babel.cfg Initial cookiecutter commit 2015-11-20 17:24:43 -07:00
requirements.txt Updated from global requirements 2017-10-14 00:39:36 +00:00
setup.cfg Update the documentation link for doc migration 2017-07-20 15:46:41 +00:00
setup.py Updated from global requirements 2017-03-02 11:49:11 +00:00
test-requirements.txt Updated from global requirements 2017-10-05 18:54:58 +00:00
tox.ini add api ref and doc link validation to release 2017-09-21 15:20:10 -06:00

README.rst

Team and repository tags

image

neutron-lib

Neutron shared routines and utilities

Features

  • TODO