From: Jenkins Date: Sun, 29 Mar 2015 18:36:57 +0000 (+0000) Subject: Merge "Validate string length at API level" X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=ce6477e73da02b2b015e1a77797ce5076b9ba457;p=openstack-build%2Fneutron-build.git Merge "Validate string length at API level" --- ce6477e73da02b2b015e1a77797ce5076b9ba457 diff --cc neutron/api/v2/attributes.py index 146b5013e,4e17d4c50..08085c5bd --- a/neutron/api/v2/attributes.py +++ b/neutron/api/v2/attributes.py @@@ -694,15 -700,10 +703,15 @@@ RESOURCE_ATTRIBUTE_MAP = 'is_visible': True}, 'status': {'allow_post': False, 'allow_put': False, 'is_visible': True}, + 'mtu': {'allow_post': False, 'allow_put': False, + 'is_visible': True}, 'tenant_id': {'allow_post': True, 'allow_put': False, - 'validate': {'type:string': None}, + 'validate': {'type:string': TENANT_ID_MAX_LEN}, 'required_by_policy': True, 'is_visible': True}, + 'vlan_transparent': {'allow_post': True, 'allow_put': False, + 'convert_to': convert_to_boolean, + 'default': False, 'is_visible': True}, SHARED: {'allow_post': True, 'allow_put': True, 'default': False,