]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Merge "Validate string length at API level"
authorJenkins <jenkins@review.openstack.org>
Sun, 29 Mar 2015 18:36:57 +0000 (18:36 +0000)
committerGerrit Code Review <review@openstack.org>
Sun, 29 Mar 2015 18:36:57 +0000 (18:36 +0000)
1  2 
neutron/api/v2/attributes.py
neutron/db/models_v2.py
neutron/extensions/l3.py
neutron/plugins/vmware/extensions/networkgw.py
neutron/tests/unit/test_api_v2.py

index 146b5013e458a83ae67c95415758401842d17240,4e17d4c50282b98c07e3c89114ed4c3acbce5f66..08085c5bd7e7228f271093e11474d7696bf4a9ad
@@@ -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,
Simple merge
Simple merge
Simple merge