]> 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)
committerMark McClain <mmcclain@yahoo-inc.com>
Wed, 5 Feb 2014 06:45:48 +0000 (01:45 -0500)
commita9050757d94009c68f06c9f374de33eefbf06aa9
treec47e4eec357987b9bf82588b82d194cb320c64d9
parent5e6e592132aa9a98936ce3bfdb66efc7832caafb
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