]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add option to ignore backend HTTP error in BigSwitch plugin
authorKevin Benton <kevin.benton@bigswitch.com>
Wed, 10 Jul 2013 23:49:31 +0000 (16:49 -0700)
committerKevin Benton <kevin.benton@bigswitch.com>
Thu, 11 Jul 2013 22:45:59 +0000 (15:45 -0700)
commit5b4ef2a513bc7c8d2a2eecb57f656bf42bb0dd52
tree6703842c42b1499759ce044a4a068ba63124203a
parentf569c75ed9261d26793ce5180a2f264d7a62f870
Add option to ignore backend HTTP error in BigSwitch plugin

This patch fixes the way the BigSwitch plugin ignores 404
errors from the backend controller by allowing HTTP codes
to be selectively ignored on REST calls. This prevents
unnecessary exception handling and failover logic in calls
where 404 codes are acceptable.

Change-Id: Ia1118c039af3b45d96fb3f8a5fb5d3febdf50f4f
Fixes: bug #1200023
neutron/plugins/bigswitch/plugin.py
neutron/tests/unit/bigswitch/test_restproxy_plugin.py