From bf7a0e2ce7897afef5dd096e83a22ab72b4ec73c Mon Sep 17 00:00:00 2001 From: armando-migliaccio Date: Tue, 22 Oct 2013 14:08:59 -0700 Subject: [PATCH] Handle 405 error codes correctly in NVP plugin When NVP returns a 405 error code no exception is raised, causing the plugin to assume that everything went well when it didn't. Fixes bug #1243411 Change-Id: If70db05b8c6950bfa88a36c4f0c20ee80419d31d --- neutron/plugins/nicira/NvpApiClient.py | 1 + 1 file changed, 1 insertion(+) diff --git a/neutron/plugins/nicira/NvpApiClient.py b/neutron/plugins/nicira/NvpApiClient.py index f61f96b919..ebc3f1d48d 100644 --- a/neutron/plugins/nicira/NvpApiClient.py +++ b/neutron/plugins/nicira/NvpApiClient.py @@ -195,6 +195,7 @@ class NVPApiHelper(client_eventlet.NvpApiClientEventlet): # TODO(del): ensure error_codes are handled/raised appropriately # in api_client. error_codes = {404: fourZeroFour, + 405: zero, 409: fourZeroNine, 503: fiveZeroThree, 403: fourZeroThree,