]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Minor improvement in port_bound operation
authorarmando-migliaccio <armamig@gmail.com>
Thu, 22 Oct 2015 00:47:47 +0000 (17:47 -0700)
committerarmando-migliaccio <armamig@gmail.com>
Thu, 22 Oct 2015 00:57:27 +0000 (17:57 -0700)
commitf50e59caf3f9b1bde107b2ca47c5fb7e26587e56
tree3339ebbb2f284c803275a6bc5af1aa2f2fb87dbe
parent3812613d6ef3098e6785ca1d68382b93f13d6916
Minor improvement in port_bound operation

By returning the need for binding, the (no-op) port processing
is skipped in the main sync loop. In fact, the port is already
detected as deleted and avoiding going over it again will save
us one log message, and thus many, many, many, many bytes over
time in logs.openstack.org.

If this is not an improvement, I don't what is.

Related-bug: 1455320

Change-Id: I4ef30bed6a1619f5980c3e61ee23ffb808c2c4f0
neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py
neutron/tests/unit/plugins/ml2/drivers/openvswitch/agent/test_ovs_neutron_agent.py