]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
NSX: Fix router-interface-delete returns 404 when router not in nsx
authorAaron Rosen <aaronorosen@gmail.com>
Thu, 13 Mar 2014 05:22:53 +0000 (22:22 -0700)
committerAaron Rosen <aaronorosen@gmail.com>
Mon, 17 Mar 2014 22:35:06 +0000 (15:35 -0700)
commitc57f11321220a21af10d884c87ab989dc7dc2e69
treef72b15afc87e27c23161c17fd47e519ff9c80168
parent2cc1d68f0e9aa32be33096b520b39a099b89fc29
NSX: Fix router-interface-delete returns 404 when router not in nsx

Previously, if one would run router-interface-delete and the router
was not found in NSX. Neutron would raise a 404 error and remove the interface
from the database. In this case it would be better if we did not raise
a 404 error as the caller shouldn't be aware that the backend is out of sync.

Closes-bug: #1291690

Change-Id: I2400f8b31817e6dd4bc8aa08f07e1613fc2deeae
neutron/plugins/vmware/plugins/base.py
neutron/tests/unit/vmware/test_nsx_plugin.py