neutron-lib/neutron_lib/api
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
..
definitions rehome multi provider net extension api definition 2017-11-02 10:27:46 -06:00
validators Merge "rehome multi provider net extension api definition" 2017-11-03 20:58:06 +00:00
__init__.py API validators and converters 2016-01-15 12:44:09 +00:00
attributes.py Enable module reference 2017-07-05 12:09:10 +09:00
converters.py Add 'convert_to_string' and apply for firewall-rule 2017-07-21 23:29:40 +09:00
extensions.py class methods and sub resources in base api ext 2017-11-16 20:23:50 +00:00
faults.py Rehome FAULT_MAP from the neutron API 2017-07-14 11:56:03 +03:00
utils.py Use api/attributes.py instead of api/utils.py 2016-11-18 11:19:55 -05:00