Merge "fix vpnaas subnet_list_or_none type"

This commit is contained in:
Zuul 2018-04-24 00:54:41 +00:00 committed by Gerrit Code Review
commit 1ad38f81cd
3 changed files with 3 additions and 3 deletions

View File

@ -220,7 +220,7 @@ RESOURCE_ATTRIBUTE_MAP = {
'is_visible': True},
'peer_cidrs': {'allow_post': True, 'allow_put': True,
'convert_to': converters.convert_to_list,
'validate': {'type:subnet_list_or_none': None},
'validate': {'type:list_of_subnets_or_none': None},
'is_visible': True,
'default': None},
'local_ep_group_id': {'allow_post': True, 'allow_put': True,

View File

@ -1096,7 +1096,7 @@ validators = {'type:dict': validate_dict,
'type:list_of_any_key_specs_or_none':
validate_any_key_specs_or_none,
'type:service_plugin_type': validate_service_plugin_type,
'type:subnet_list_or_none': validate_subnet_list_or_none,
'type:list_of_subnets_or_none': validate_subnet_list_or_none,
}

View File

@ -4,5 +4,5 @@ features:
``vpnaas``, ``vpn-endpoint-groups`` and ``vpn-flavors``.
- Migrate user facing exceptions into neutron-lib along with the API
definitions.
- A new validator for type ``type:subnet_list_or_none`` to validate
- A new validator for type ``type:list_of_subnets_or_none`` to validate
data is a list of subnet dicts or ``None`` is added too.