From 50e033fea1ad2c3ed61878e224d23c1a467b878e Mon Sep 17 00:00:00 2001 From: Boden R Date: Thu, 12 Apr 2018 15:36:33 -0600 Subject: [PATCH] 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 --- neutron/extensions/qos.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/neutron/extensions/qos.py b/neutron/extensions/qos.py index acbd4689848..e04a44d8928 100644 --- a/neutron/extensions/qos.py +++ b/neutron/extensions/qos.py @@ -79,22 +79,6 @@ class Qos(api_extensions.APIExtensionDescriptor): return resources - def update_attributes_map(self, attributes, extension_attrs_map=None): - # TODO(boden): remove with I8ae11633962a48de6e8559b85447b8c8c753d705 - super(Qos, self).update_attributes_map( - attributes, - extension_attrs_map=dict( - list(apidef.RESOURCE_ATTRIBUTE_MAP.items()) + - list(apidef.SUB_RESOURCE_ATTRIBUTE_MAP.items()))) - - def get_extended_resources(self, version): - # TODO(boden): remove with I8ae11633962a48de6e8559b85447b8c8c753d705 - if version == "2.0": - return dict(list(apidef.RESOURCE_ATTRIBUTE_MAP.items()) + - list(apidef.SUB_RESOURCE_ATTRIBUTE_MAP.items())) - else: - return {} - @six.add_metaclass(abc.ABCMeta) class QoSPluginBase(service_base.ServicePluginBase):