]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Suppress exception when trying to remove non existing device in SNAT redirect
authorGal Sagie <gal.sagie@huawei.com>
Mon, 30 Mar 2015 07:40:36 +0000 (10:40 +0300)
committerGal Sagie <gal.sagie@huawei.com>
Tue, 28 Apr 2015 05:23:11 +0000 (08:23 +0300)
commitf6845986446601b92082c811f4181016ef0fefc8
tree78012d457718611327a2d7b0067015466c35d8a1
parentc5188d8bf8493e4b075689f64251f85231e696a2
Suppress exception when trying to remove non existing device in SNAT redirect

L3 service plugin first calls to remove_router_interface from the L2 OVS agent
which delete this port from OVS and then the service plugin calls
to remove the router interface from L3 agent.

Catch the exception thrown on the delete gateway, if its due to device doesn't exists
ignore the exception

Closes-Bug: #1435012
Change-Id: Ieeaa01e7c0393f5200d1a8d2bbbc16befe7699a2
neutron/agent/l3/dvr_router.py
neutron/agent/linux/ip_lib.py
neutron/common/exceptions.py
neutron/tests/functional/agent/test_l3_agent.py