]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Avoid re-wiring ports unnecessarily
authorSalvatore Orlando <salv.orlando@gmail.com>
Sat, 21 Dec 2013 00:59:05 +0000 (16:59 -0800)
committerThomas Goirand <thomas@goirand.fr>
Thu, 13 Mar 2014 07:20:15 +0000 (15:20 +0800)
commit35228befab375cf8a1ecfaebe2b8ba4a7af16a6e
tree0d7d41562e8ad6a92d792859887fb162ad198da1
parentaf1082c2165c8edf9bbb38e2e90ac494f96b91f8
Avoid re-wiring ports unnecessarily

In the majority of cases a port_update notification pertains
a change in the properties affecting port filter, and does
not affect port wiring, ie: the local vlan tag.

This patch simply avoids doing port wiring/unwiring if the
local vlan tag did not change.
The extra overhead for the ovs-db get operation is offset
by the fact that get commands are generally faster than
set commands, and by avoiding executing the ovs-ofctl operation.

Partial-Bug: #1253993
Partially implements blueprint: neutron-tempest-parallel

Change-Id: Ia0bd2dc4e5a2634a4c863ff32ccc5cabe8e21337
neutron/plugins/openvswitch/agent/ovs_neutron_agent.py
neutron/tests/unit/openvswitch/test_ovs_neutron_agent.py
neutron/tests/unit/openvswitch/test_ovs_tunnel.py