Merge "Annotate filter parameters for tag attributes"
This commit is contained in:
commit
9f3a41c2c7
|
@ -31,12 +31,22 @@ from neutron.db import standard_attr
|
||||||
|
|
||||||
TAG = 'tag'
|
TAG = 'tag'
|
||||||
TAGS = TAG + 's'
|
TAGS = TAG + 's'
|
||||||
|
TAGS_ANY = TAGS + '-any'
|
||||||
|
NOT_TAGS = 'not-' + TAGS
|
||||||
|
NOT_TAGS_ANY = NOT_TAGS + '-any'
|
||||||
MAX_TAG_LEN = 60
|
MAX_TAG_LEN = 60
|
||||||
TAG_PLUGIN_TYPE = 'TAG'
|
TAG_PLUGIN_TYPE = 'TAG'
|
||||||
|
|
||||||
TAG_SUPPORTED_RESOURCES = standard_attr.get_tag_resource_parent_map()
|
TAG_SUPPORTED_RESOURCES = standard_attr.get_tag_resource_parent_map()
|
||||||
TAG_ATTRIBUTE_MAP = {
|
TAG_ATTRIBUTE_MAP = {
|
||||||
TAGS: {'allow_post': False, 'allow_put': False, 'is_visible': True}
|
TAGS: {'allow_post': False, 'allow_put': False,
|
||||||
|
'is_visible': True, 'is_filter': True},
|
||||||
|
TAGS_ANY: {'allow_post': False, 'allow_put': False,
|
||||||
|
'is_visible': False, 'is_filter': True},
|
||||||
|
NOT_TAGS: {'allow_post': False, 'allow_put': False,
|
||||||
|
'is_visible': False, 'is_filter': True},
|
||||||
|
NOT_TAGS_ANY: {'allow_post': False, 'allow_put': False,
|
||||||
|
'is_visible': False, 'is_filter': True},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue