neutron/neutron/api
Thomas Morin 605364ad78 Support that an extension extends a sub-resource
The neutron.api.extensions code assumes that the resource to update are
base resources and updates its dictionary. When the resource
is a sub-resource, ie. a {'parent': ... , 'parameters': {..} } dictionary,
the result of the update is that the content of 'parameters' is
overwritten.

The correct thing to do here, in the case where the extended resource is
a sub-resource, is to update the content of parameters with the new/changed
attributes.

This change also removes a workaround that was made in
the qos-bw-limit-direction extension, and which after the change in API
extension code, is not needed anymore.

Needed-By: I263e1ee6cf4e1a91be91a4a78f4a160f64d33cc6
Change-Id: I4cb61481205c3689c41e62670cec113adb2a0362
Closes-Bug: 1722842
2017-11-15 08:59:45 +01:00
..
rpc Merge "RPC callbacks: add hook to register additional resources" 2017-11-14 23:10:03 +00:00
v2 use core resource api defs from lib 2017-11-08 09:48:50 -07:00
views Add a new configuration variable for api links. 2017-04-18 15:16:41 +00:00
__init__.py Added API extensions to detect sorting/pagination features 2016-08-01 22:57:15 +02:00
api_common.py Make code follow log translation guideline 2017-08-14 02:01:48 +00:00
extensions.py Support that an extension extends a sub-resource 2017-11-15 08:59:45 +01:00
versions.py Remove dead versions code 2017-09-19 14:54:33 -07:00