]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix PortNotFound error during update_device_up for DVR
authorarmando-migliaccio <armamig@gmail.com>
Wed, 13 Aug 2014 18:39:07 +0000 (11:39 -0700)
committerarmando-migliaccio <armamig@gmail.com>
Wed, 13 Aug 2014 18:53:59 +0000 (11:53 -0700)
commitb025ccff2c7320caecfc005cfcbc3f4dfadfa505
tree3a0dda3669b4a7c0229a45898530c1ad905188bb
parent8e7120ff418b1fb0e6fd2e0f5f1e862f1bbb03c6
Fix PortNotFound error during update_device_up for DVR

An agent's request to update the ARP entry for a VM port
may come after a deletion request has been processed,
resulting in a PortNotFound exception being raised.

This patch takes care of this condition. A test has
been added, which required a minor refactoring of the
test case class, in order to accommodate the use of
side effects for the objects being mocked.

Closes-bug: #1356120

Change-Id: I40d635bcf47c683663cb4dedf20323902dff2c7f
neutron/plugins/ml2/rpc.py
neutron/tests/unit/ml2/test_rpcapi.py