]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
OVS flows apply concurrently using a deferred OVSBridge
authorcedric.brandily <zzelle@gmail.com>
Fri, 16 May 2014 20:18:45 +0000 (16:18 -0400)
committerCedric Brandily <zzelle@gmail.com>
Mon, 4 Aug 2014 23:14:47 +0000 (01:14 +0200)
commit990d596ec09242733f8bc3669b70136ca6741d6e
tree32a997e1ae0fccdc4dcab3774629d14b084f077e
parent6bd6debebe601fa4076dc34e9c9fdac45defdd58
OVS flows apply concurrently using a deferred OVSBridge

This change is an improvement of the commit
501213686886baccd3280e10b8856a25d3517519 and provides a cleaner
implementation. Previously flows were applied on
OVSBridge.defer_apply_off which could be called by an other
greenthread: it was impossible to ensure that all flows are applied
in a unique OVSBridge.defer_apply_off call. This change ensures that
all flows defined using a DeferredOVSBridge are applied on
DeferredOVSBridge.apply_flows or DeferredOVSBridge.__exit__ if not
exception is raised.

Author:         Cedric Brandily <zzelle@gmail.com>
Co-Authored-By: Edouard Thuleau <edouard.thuleau@cloudwatt.com>
Related-bug: #1263866
Change-Id: I1f260629ef95b98ee80e2ff946c3606da8fe7608
neutron/agent/l2population_rpc.py
neutron/agent/linux/ovs_lib.py
neutron/plugins/ofagent/agent/ofa_neutron_agent.py
neutron/plugins/openvswitch/agent/ovs_neutron_agent.py
neutron/tests/unit/agent/l2population_rpc_base.py
neutron/tests/unit/agent/linux/test_ovs_lib.py
neutron/tests/unit/agent/test_l2population_rpc.py
neutron/tests/unit/ofagent/test_ofa_neutron_agent.py
neutron/tests/unit/openvswitch/test_ovs_neutron_agent.py