Merge "Annotate filter parameters for tag attributes"

This commit is contained in:
Zuul 2018-06-14 15:47:40 +00:00 committed by Gerrit Code Review
commit 9f3a41c2c7
1 changed files with 11 additions and 1 deletions

View File

@ -31,12 +31,22 @@ from neutron.db import standard_attr
TAG = 'tag'
TAGS = TAG + 's'
TAGS_ANY = TAGS + '-any'
NOT_TAGS = 'not-' + TAGS
NOT_TAGS_ANY = NOT_TAGS + '-any'
MAX_TAG_LEN = 60
TAG_PLUGIN_TYPE = 'TAG'
TAG_SUPPORTED_RESOURCES = standard_attr.get_tag_resource_parent_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},
}