]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Make del_fdb_flow() idempotent.
authorDermot Tynan <tynan@hp.com>
Fri, 20 Feb 2015 16:57:33 +0000 (16:57 +0000)
committerDermot Tynan <tynan@hp.com>
Fri, 27 Feb 2015 10:46:51 +0000 (10:46 +0000)
commit841b2f58f375df53b380cf5796bb31c82cd09260
treef3097ad8654d4c84c7e04ba4cb3753615b807d4c
parentdaf4f1938d48582c577bf373862ad6a4b7ba40d5
Make del_fdb_flow() idempotent.

Addresses an issue where del_fdb_flow() gets a duplicate call for
the same port, which results in a KeyError. This change makes the
call more idempotent, so that it doesn't cause other follow-on
errors as a result of the uncaught exception.

Change-Id: I7a3a34dd654e143dee06c3e4642e859211a312ca
Closes-bug: #1421105
neutron/plugins/ofagent/agent/ofa_neutron_agent.py
neutron/plugins/openvswitch/agent/ovs_neutron_agent.py
neutron/tests/unit/openvswitch/test_ovs_neutron_agent.py