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
This commit is contained in:
Miguel Lavalle 2015-12-23 17:22:14 +00:00
parent c429ee18b6
commit 8f4eb2d38f

View File

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