X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=planetlab%2Fscripts%2Fsliver-ovs.in;h=9b7495013600a53152a1c1ca9824f4d43f4c28c1;hb=621ffea966bf3aedaa8ceadbb43f3cd642854ad6;hp=dfd596f9f77c32b0eb6fab48805c9fc21e282334;hpb=57675f94c6e5639f6d7ea622d441bf410cf84d3c;p=sliver-openvswitch.git diff --git a/planetlab/scripts/sliver-ovs.in b/planetlab/scripts/sliver-ovs.in index dfd596f9f..9b7495013 100755 --- a/planetlab/scripts/sliver-ovs.in +++ b/planetlab/scripts/sliver-ovs.in @@ -197,6 +197,17 @@ function set_remote_endpoint () { options:remote_port=$remote_UDP_port } +function set_controller () { + + get_params "bridge_name controller" "$@" + + # ensure ovs-vswitchd is running + is_switch_running || { echo "ovs-vswitchd not running" >&2 ; exit 1 ; } + + set -e + ovs-vsctl --db=unix:$DB_SOCKET set-controller "$bridge_name" "$controller" +} + #################### del functions function del_bridge () {