Allow other extensions to extend Securitygroup resources
The Neutron Securitygroup extension defines two resources: security-group security-group-rule So that other extensions could extend one or both of this resources, the security-group extension descriptor must override the base class method, "neutron.extensions.ExtensionDescriptor.update_attributes_map". Change-Id: I8c462a4ee6f60ef716bf9e4d7f83a35c7e1dead0 Closes-Bug: #1529109
This commit is contained in:
parent
4b7b335b42
commit
18bc556bd4
|
@ -333,6 +333,10 @@ class Securitygroup(extensions.ExtensionDescriptor):
|
|||
|
||||
return exts
|
||||
|
||||
def update_attributes_map(self, attributes):
|
||||
super(Securitygroup, self).update_attributes_map(
|
||||
attributes, extension_attrs_map=RESOURCE_ATTRIBUTE_MAP)
|
||||
|
||||
def get_extended_resources(self, version):
|
||||
if version == "2.0":
|
||||
return dict(list(EXTENDED_ATTRIBUTES_2_0.items()) +
|
||||
|
|
Loading…
Reference in New Issue