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,