From 8f4eb2d38fbc3deb3f3bb0201ed96aebf1ddee8e Mon Sep 17 00:00:00 2001 From: Miguel Lavalle Date: Wed, 23 Dec 2015 17:22:14 +0000 Subject: [PATCH] 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 --- neutron/extensions/l3.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neutron/extensions/l3.py b/neutron/extensions/l3.py index 64292ff0f44..1c4f0ff13c2 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,