summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-06-14 15:47:40 +0000
committerGerrit Code Review <review@openstack.org>2018-06-14 15:47:40 +0000
commit9f3a41c2c752bd68a84b6bd72add18e8bc6f4c76 (patch)
tree1aa196fb2d344985429b3452f8e748a439b622f0
parent8700faa0d53fe6fc2383ff86a76035fcecba6fdf (diff)
parent8b19db164aa9ecdf2c0bbc97f6e2799f15cebf27 (diff)
Merge "Annotate filter parameters for tag attributes"
-rw-r--r--neutron/extensions/tagging.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/neutron/extensions/tagging.py b/neutron/extensions/tagging.py
index 449b5f3..b1029ff 100644
--- a/neutron/extensions/tagging.py
+++ b/neutron/extensions/tagging.py
@@ -31,12 +31,22 @@ from neutron.db import standard_attr
31 31
32TAG = 'tag' 32TAG = 'tag'
33TAGS = TAG + 's' 33TAGS = TAG + 's'
34TAGS_ANY = TAGS + '-any'
35NOT_TAGS = 'not-' + TAGS
36NOT_TAGS_ANY = NOT_TAGS + '-any'
34MAX_TAG_LEN = 60 37MAX_TAG_LEN = 60
35TAG_PLUGIN_TYPE = 'TAG' 38TAG_PLUGIN_TYPE = 'TAG'
36 39
37TAG_SUPPORTED_RESOURCES = standard_attr.get_tag_resource_parent_map() 40TAG_SUPPORTED_RESOURCES = standard_attr.get_tag_resource_parent_map()
38TAG_ATTRIBUTE_MAP = { 41TAG_ATTRIBUTE_MAP = {
39 TAGS: {'allow_post': False, 'allow_put': False, 'is_visible': True} 42 TAGS: {'allow_post': False, 'allow_put': False,
43 'is_visible': True, 'is_filter': True},
44 TAGS_ANY: {'allow_post': False, 'allow_put': False,
45 'is_visible': False, 'is_filter': True},
46 NOT_TAGS: {'allow_post': False, 'allow_put': False,
47 'is_visible': False, 'is_filter': True},
48 NOT_TAGS_ANY: {'allow_post': False, 'allow_put': False,
49 'is_visible': False, 'is_filter': True},
40} 50}
41 51
42 52