summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoden R <bodenvmw@gmail.com>2018-04-12 15:36:33 -0600
committerBoden R <bodenvmw@gmail.com>2018-04-13 09:55:38 -0600
commit50e033fea1ad2c3ed61878e224d23c1a467b878e (patch)
tree3b59d0deb5f77318a98f14cffa3fe997dface906
parent7d6d277e408250b5a738fabfb169733cb369a849 (diff)
use sub-resource API extension support
Now that neutron-lib supports sub-resources [1], there's no need for extension classes to override update_attributes_map and get_extended_resources to add their own sub-resources. This patch removes those methods from the qos extensions class. NeutronLibImpact [1] I8ae11633962a48de6e8559b85447b8c8c753d705 Change-Id: Ibb66246091fd84e18c56009f5fcb8fdea3aff6b7
Notes
Notes (review): Code-Review+2: Ihar Hrachyshka <ihrachys@redhat.com> Code-Review+1: Thomas Morin <tmmorin.orange@gmail.com> Verified+1: Arista CI <arista-openstack-test@aristanetworks.com> Code-Review+2: Miguel Lavalle <miguel.lavalle@huawei.com> Workflow+1: Miguel Lavalle <miguel.lavalle@huawei.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Sat, 14 Apr 2018 00:46:48 +0000 Reviewed-on: https://review.openstack.org/561052 Project: openstack/neutron Branch: refs/heads/master
-rw-r--r--neutron/extensions/qos.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/neutron/extensions/qos.py b/neutron/extensions/qos.py
index acbd468..e04a44d 100644
--- a/neutron/extensions/qos.py
+++ b/neutron/extensions/qos.py
@@ -79,22 +79,6 @@ class Qos(api_extensions.APIExtensionDescriptor):
79 79
80 return resources 80 return resources
81 81
82 def update_attributes_map(self, attributes, extension_attrs_map=None):
83 # TODO(boden): remove with I8ae11633962a48de6e8559b85447b8c8c753d705
84 super(Qos, self).update_attributes_map(
85 attributes,
86 extension_attrs_map=dict(
87 list(apidef.RESOURCE_ATTRIBUTE_MAP.items()) +
88 list(apidef.SUB_RESOURCE_ATTRIBUTE_MAP.items())))
89
90 def get_extended_resources(self, version):
91 # TODO(boden): remove with I8ae11633962a48de6e8559b85447b8c8c753d705
92 if version == "2.0":
93 return dict(list(apidef.RESOURCE_ATTRIBUTE_MAP.items()) +
94 list(apidef.SUB_RESOURCE_ATTRIBUTE_MAP.items()))
95 else:
96 return {}
97
98 82
99@six.add_metaclass(abc.ABCMeta) 83@six.add_metaclass(abc.ABCMeta)
100class QoSPluginBase(service_base.ServicePluginBase): 84class QoSPluginBase(service_base.ServicePluginBase):