Add keyword 'is_filter' to binding extended

Change-Id: I8a9464e372eee0dde7804003868c24db026b4396
This commit is contained in:
Hongbin Lu 2018-07-18 02:49:58 +00:00
parent 05392ceffb
commit 2847043efd
1 changed files with 5 additions and 3 deletions

View File

@ -74,11 +74,12 @@ SUB_RESOURCE_ATTRIBUTE_MAP = {
'member_name': PARENT_RESOURCE_NAME},
'parameters': {
HOST: {'allow_post': True, 'allow_put': True,
'is_visible': True, 'primary_key': True},
'is_visible': True, 'primary_key': True,
'is_filter': True},
VIF_TYPE: {'allow_post': False, 'allow_put': False,
'default': constants.ATTR_NOT_SPECIFIED,
'enforce_policy': True,
'is_visible': True},
'is_visible': True, 'is_filter': True},
VIF_DETAILS: {'allow_post': False, 'allow_put': False,
'default': constants.ATTR_NOT_SPECIFIED,
'enforce_policy': True,
@ -86,6 +87,7 @@ SUB_RESOURCE_ATTRIBUTE_MAP = {
VNIC_TYPE: {'allow_post': True, 'allow_put': True,
'default': portbindings.VNIC_NORMAL,
'is_visible': True,
'is_filter': True,
'validate': {'type:values': portbindings.VNIC_TYPES},
'enforce_policy': True},
PROFILE: {'allow_post': True, 'allow_put': True,
@ -94,7 +96,7 @@ SUB_RESOURCE_ATTRIBUTE_MAP = {
'validate': {'type:dict_or_none': None},
'is_visible': True},
STATUS: {'allow_post': False, 'allow_put': False,
'is_visible': True},
'is_visible': True, 'is_filter': True},
PROJECT_ID: {'allow_post': True, 'allow_put': False,
'required_by_policy': True,
'validate': {