]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
nvp:log only in rm router iface if port not found
authorSalvatore Orlando <salv.orlando@gmail.com>
Wed, 16 Oct 2013 22:11:34 +0000 (15:11 -0700)
committerSalvatore Orlando <salv.orlando@gmail.com>
Thu, 17 Oct 2013 12:14:44 +0000 (05:14 -0700)
commit477dac0373b5e84c71365d7a71b9cc41aafcb491
treea5b3e3d380c9a4ae5f7929134ed8183934d21ed0
parent85e798decaecaefef2ed76728e268194c59a091e
nvp:log only in rm router iface if port not found

The code currently raises when it's not able to find the port to be
deleted on the backend. This might happen, for instance, when the
port is manually removed or, in some cases, if port creation failed
in the first place.

There's little sense in raising when a resource to be removed is not
found; therefore this patch replaces the raise statement with a log
statement.

Bug 1240720

Change-Id: Ifa756b07ef41346a44325341c8e0e8994dc64dde
neutron/plugins/nicira/NeutronPlugin.py