Add shared attribute to address groups for RBAC

In order to be able to share address groups with 'access_as_shared' RBAC
policies, the 'shared' attribute is added to their API definition.

Change-Id: I3b82ffe4fa41f1b57ffbad88a86455930bdf1b32
This commit is contained in:
Miguel Lavalle
2021-02-10 12:45:09 -06:00
parent 455f624476
commit e4f10dfa3e

View File

@@ -60,6 +60,13 @@ RESOURCE_ATTRIBUTE_MAP = {
'default': constants.ATTR_NOT_SPECIFIED,
'validate': {'type:subnet_list': None},
'is_visible': True},
constants.SHARED: {'allow_post': False,
'allow_put': False,
'default': False,
'convert_to': converters.convert_to_boolean,
'is_visible': False,
'is_filter': False,
'is_sort_key': False},
}
}