]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Add constant to L3 extension for floating ips
authorMiguel Lavalle <malavall@us.ibm.com>
Wed, 23 Dec 2015 17:22:14 +0000 (17:22 +0000)
committerMiguel Lavalle <malavall@us.ibm.com>
Wed, 23 Dec 2015 18:34:57 +0000 (18:34 +0000)
Add a constant string to the L3 extension to access floating ips in request and
response dictionaries

Change-Id: I161ab583f4eca3a8f0ddda1dd533780591e3423d

neutron/extensions/l3.py

index 64292ff0f44b6595ecef5b8ddcfa293aea47f637..1c4f0ff13c2ff05ead8e64d19553345cb1dbe5aa 100644 (file)
@@ -79,6 +79,7 @@ class RouterExternalGatewayInUseByFloatingIp(nexception.InUse):
 
 ROUTERS = 'routers'
 EXTERNAL_GW_INFO = 'external_gateway_info'
+FLOATINGIPS = 'floatingips'
 
 RESOURCE_ATTRIBUTE_MAP = {
     ROUTERS: {
@@ -116,7 +117,7 @@ RESOURCE_ATTRIBUTE_MAP = {
                                }
                            }}
     },
-    'floatingips': {
+    FLOATINGIPS: {
         'id': {'allow_post': False, 'allow_put': False,
                'validate': {'type:uuid': None},
                'is_visible': True,