From 2847043efd0724d3b948daee5b44fb3bf2c11303 Mon Sep 17 00:00:00 2001 From: Hongbin Lu Date: Wed, 18 Jul 2018 02:49:58 +0000 Subject: [PATCH] Add keyword 'is_filter' to binding extended Change-Id: I8a9464e372eee0dde7804003868c24db026b4396 --- neutron_lib/api/definitions/portbindings_extended.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/neutron_lib/api/definitions/portbindings_extended.py b/neutron_lib/api/definitions/portbindings_extended.py index 41db5d4e2..2c5a18f84 100644 --- a/neutron_lib/api/definitions/portbindings_extended.py +++ b/neutron_lib/api/definitions/portbindings_extended.py @@ -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': {