blob: 5b3cd6f70f778557e4ea32c8084fb4895c4fc4f1 [file] [log] [blame]
Thomas Vachuska871262f2015-09-09 17:14:01 -07001#!/bin/bash
2# -----------------------------------------------------------------------------
3# Sets controllers on all OVS bridges on the mininet machine.
4# -----------------------------------------------------------------------------
5
6controllers=""
7
8for node in $ONOS_INSTANCES; do
9 controllers="$controllers tcp:$node:${OF_PORT:-6633}"
10done
11
12ssh ${ONOS_USER:-sdn}@$OCN "
13 sudo ovs-vsctl list-br | while read br; do
14 echo \$br: $controllers
15 sudo ovs-vsctl set-controller \$br $controllers
16 done
17"