From: Miguel Lavalle Date: Wed, 23 Dec 2015 17:22:14 +0000 (+0000) Subject: Add constant to L3 extension for floating ips X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=8f4eb2d38fbc3deb3f3bb0201ed96aebf1ddee8e;p=openstack-build%2Fneutron-build.git Add constant to L3 extension for floating ips Add a constant string to the L3 extension to access floating ips in request and response dictionaries Change-Id: I161ab583f4eca3a8f0ddda1dd533780591e3423d --- diff --git a/neutron/extensions/l3.py b/neutron/extensions/l3.py index 64292ff0f..1c4f0ff13 100644 --- a/neutron/extensions/l3.py +++ b/neutron/extensions/l3.py @@ -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,