]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add the option to minimize ovs l2 polling
authorMaru Newby <marun@redhat.com>
Mon, 9 Sep 2013 10:06:49 +0000 (10:06 +0000)
committerMaru Newby <marun@redhat.com>
Mon, 14 Oct 2013 22:24:15 +0000 (22:24 +0000)
commitcb0df591a9508e863ad5d5d71190eca349dc551f
treedf89763a101156722258691d645d68b59a394022
parent010bd1f392e67a6fcd276593b8c79acfe41d1cc7
Add the option to minimize ovs l2 polling

This change adds the ability to monitor the local ovsdb for
interface changes so that the l2 agent can avoid unnecessary
polling.  Minimal changes are made to the agent so the risk
of breakage should be low.  Future efforts to make the agent
entirely event-based may be able to use OvsdbMonitor as a
starting point.

By default polling minimization is not done, and can only be
enabled by setting 'minimize_polling = True' in the ovs
section of the l2 agent's config file.

Closes-Bug: #1177973

Change-Id: I26c035b48a74df2148696869c5a9affae5ab3d27
13 files changed:
etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini
etc/neutron/rootwrap.d/openvswitch-plugin.filters
neutron/agent/linux/async_process.py
neutron/agent/linux/ovsdb_monitor.py [new file with mode: 0644]
neutron/agent/linux/polling.py [new file with mode: 0644]
neutron/plugins/openvswitch/agent/ovs_neutron_agent.py
neutron/plugins/openvswitch/common/config.py
neutron/tests/base.py
neutron/tests/functional/agent/linux/test_async_process.py
neutron/tests/functional/agent/linux/test_ovsdb_monitor.py [new file with mode: 0644]
neutron/tests/unit/agent/linux/test_ovsdb_monitor.py [new file with mode: 0644]
neutron/tests/unit/agent/linux/test_polling.py [new file with mode: 0644]
neutron/tests/unit/openvswitch/test_ovs_neutron_agent.py