From 63ff61c8d69719acf80ff3217446d57b1b99ed6a Mon Sep 17 00:00:00 2001 From: Keiichiro Tokunaga Date: Thu, 30 Jul 2015 14:41:59 +0900 Subject: [PATCH] Add missing err res codes to "Create floating IP" "Error response codes" of "Create floating IP" is missing Not Found (404) like this: Error response codes badRequest (400), unauthorized (401), conflict (409) Please see http://developer.openstack.org/api-ref-networking-v2-ext.html#createFloatingIp . Actually, it has a description about error codes and there is Not Found (404) there like this: Error codes: - 400 The operation returns this error code for one of these reasons: o The specified network is not external, such as router:external=False. o The specified internal OpenStack Networking port is not associated with the floating IP address. o The requested floating IP address does not fall in the subnet range for the external network. o The specified fixed IP address is not valid. - 404 The specified port ID is not valid. - 409 The operation returns this error code for one of these reasons: o The requested floating IP address is already in use. o The internal OpenStack Networking port and specified fixed IP address are already associated with another floating IP. However, now it's missing unauthorized (401) there. So, in summary, we need the following two fixes. This patch fixes both of them. 1) Add Not Found (404) to "Error response codes" 2) Add unauthorized (401) to "Error codes" description Change-Id: Ie3fc32b85b7812736094d46390642facff65f257 Closes-Bug: #1479629 --- api-ref/src/wadls/netconn-api/src/os-layer3-ext.wadl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/api-ref/src/wadls/netconn-api/src/os-layer3-ext.wadl b/api-ref/src/wadls/netconn-api/src/os-layer3-ext.wadl index e41547b64..acff5f271 100644 --- a/api-ref/src/wadls/netconn-api/src/os-layer3-ext.wadl +++ b/api-ref/src/wadls/netconn-api/src/os-layer3-ext.wadl @@ -534,6 +534,10 @@ Accept: application/json + + 401 The operation is not authorized. + + 404 The specified port ID is not valid. @@ -591,7 +595,7 @@ Accept: application/json href="api_samples/floatingip-post-resp.json"/> - &fault400; &fault401; &fault409; + &fault400; &fault401; &fault404; &fault409;