diff --git a/neutron/extensions/tagging.py b/neutron/extensions/tagging.py index 449b5f380f2..b1029ff83b6 100644 --- a/neutron/extensions/tagging.py +++ b/neutron/extensions/tagging.py @@ -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}, }