]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Replace non-ovs_lib calls of run_vsctl with libary functions
authorTerry Wilson <twilson@redhat.com>
Fri, 12 Dec 2014 17:12:02 +0000 (10:12 -0700)
committerTerry Wilson <twilson@redhat.com>
Fri, 12 Dec 2014 17:12:02 +0000 (10:12 -0700)
commit06295477aa74f6bfea38cc10c76cf2390b469305
tree50d81586aef97804f8cee9c512cfad4f5fb3b7d6
parent6f2231a7095f21e556124af3b2f3d54f284a1ef9
Replace non-ovs_lib calls of run_vsctl with libary functions

There is already an OVSBridge.set_controller() function, so replace
calls to run_vsctl(['set-controller', ...]) with calls to
OVSBridge.set_controller().

This is also the only non-ovs_lib call to run_vsctl. This change
will also make it easier to abstract out the ovsdb-related code in
the future.

Change-Id: Ia5a3e2c759d2479a2e7088a2ab7db1d4e17d1ae2
neutron/plugins/ibm/agent/sdnve_neutron_agent.py
neutron/tests/unit/ibm/test_sdnve_agent.py