9e67ba5052
The core resource API definitions are in neutron-lib and are already setup in a RESOURCES map, similar to neutron's global RESOURCE_ATTRIBUTE_MAP. However, a number of consumers directly use RESOURCE_ATTRIBUTE_MAP and moreover can perform some interesting operations on it while mockin" for tests. For that reason this patch proposes we phase in the use of neutron's RESOURCES map rather than a rip and replace of RESOURCE_ATTRIBUTE_MAP. This patch removes the API definitions for the core neutron resources by updating neutron's global RESOURCE_ATTRIBUTE_MAP to reference lib's RESOURCE map. In addition the AttributeMapMemento class is removed; it no longer servers a purpose and neutron-lib's fixture should be used in its place. This patch should be safe to merge without worry of impacting consumers. No one is using AttributeMapMemento [1] and the global map only changed its reference value. [1] http://codesearch.openstack.org/?q=AttributeMapMemento Change-Id: Ib04fddcbd4465074452b71b16befa4e33b27259e |
||
---|---|---|
.. | ||
rpc | ||
v2 | ||
views | ||
__init__.py | ||
api_common.py | ||
extensions.py | ||
versions.py |