]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Move non-bridge-related OVSBridge methods to BaseOVS
authorTerry Wilson <twilson@redhat.com>
Thu, 11 Dec 2014 18:10:37 +0000 (11:10 -0700)
committerTerry Wilson <twilson@redhat.com>
Sat, 10 Jan 2015 12:46:35 +0000 (06:46 -0600)
commit589205a6c2cca4e78ba4d14008df22c077dde1d9
treec818bbc5b6c69860a99d5e7154b5d31a5f3e46a2
parent4e776e87a32746e5f7a6d0d7771a70fcb491df64
Move non-bridge-related OVSBridge methods to BaseOVS

This patch moves several methods in OVSBridge that don't really have
anything to do with OVS bridges to BaseOVS where they are a much
better fit. Since OVSBridge inherits from BaseOVS, no modules using
ovs_lib will have to change to support this move.

Also, several module-level functions that essentially re-implement
BaseOVS.run_vsctl() are moved to BaseOVS and converted to use
run_vsctl. In order to avoid changing the API, the module-level
functions are then reimplemented by creating a BaseOVS instance and
calling the associated method.

Partially-implements: blueprint vsctl-to-ovsdb
Change-Id: I94aaa0bef68e407649b421db53bb59d007335f5c
neutron/agent/linux/ovs_lib.py
neutron/cmd/netns_cleanup.py
neutron/cmd/ovs_cleanup.py
neutron/plugins/openvswitch/agent/ovs_neutron_agent.py
neutron/tests/unit/agent/linux/test_ovs_lib.py
neutron/tests/unit/openvswitch/test_ovs_neutron_agent.py
neutron/tests/unit/openvswitch/test_ovs_tunnel.py
neutron/tests/unit/test_netns_cleanup.py
neutron/tests/unit/test_ovs_cleanup.py