vmware-nsx/neutron
Matt Riedemann 6cd3e190c6 Make SubnetMismatchForPort extend BadRequest rather than Conflict
Nova is trying to do a better job of mapping Neutron exceptions and
change I4c087684ef77988e5f463d7f2f50fc2a04f37db0 is trying to map 409 to
the proper nova exception. In looking at what raises a 409 exception in
Neutron, the SubnetMismatchForPort exception seemed like a candidate for
changing from Conflict (409) to BadRequest (400) to ease that mapping.

Note that the only thing currently using this exception is the L3 router
extension when removing a router interface and the 400 response code is
already listed in the API docs as a possible response code:

http://docs.openstack.org/api/openstack-network/2.0/content/router_remove_interface.html

Also note that it's generally OK to change APIs for a more accurate
response code:

https://wiki.openstack.org/wiki/APIChangeGuidelines#Generally_Considered_OK

Related-Bug: #1209446

Change-Id: I4507e1db69d738ec0f943f1b8b1209f269d5aebf
2013-08-08 23:10:41 -04:00
..
agent Change decorator to webob as doesn't need to be wsgi 2013-08-06 09:13:03 -07:00
api Externalize error messages in the API 2013-08-07 21:19:25 +00:00
common Make SubnetMismatchForPort extend BadRequest rather than Conflict 2013-08-08 23:10:41 -04:00
db Merge "Fix lbaas_pool_scheduler db migration" 2013-08-08 07:53:29 +00:00
debug Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
extensions Externalize error messages in the API 2013-08-07 21:19:25 +00:00
locale Imported Translations from Transifex 2013-08-08 19:55:46 +00:00
openstack Merge "Sync oslo gettextutils" 2013-08-08 07:53:21 +00:00
plugins Remove unused *AlreadyAttached exceptions 2013-08-08 14:24:43 -07:00
scheduler Merge "Register agent schedulers options in one place" 2013-07-18 10:05:43 +00:00
server Enable localizable REST API responses via the Accept-Language header 2013-08-07 21:19:25 +00:00
services Merge "LBaaS: add status field to PoolMonitorAssociation table" 2013-08-01 21:50:25 +00:00
tests Make SubnetMismatchForPort extend BadRequest rather than Conflict 2013-08-08 23:10:41 -04:00
__init__.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
auth.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
context.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
hooks.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
manager.py Add agent scheduling for LBaaS namespace agent 2013-07-19 13:25:04 +04:00
neutron_plugin_base_v2.py Remove openstack.common.exception usage 2013-08-06 10:42:02 +02:00
policy.py Fixing some typos found during translation 2013-07-30 07:16:22 -03:00
quota.py Externalize error messages in the API 2013-08-07 21:19:25 +00:00
service.py Enable logging before using it 2013-07-13 15:35:22 +08:00
version.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
wsgi.py Externalize error messages in the API 2013-08-07 21:19:25 +00:00