blob: 27cc16c80df26d4165a6c970de547cf9b6001867 [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
Charles Chan45624b82015-08-24 00:29:20 +08009 controllers="$controllers tcp:$node:${OF_PORT:-6653}"
Thomas Vachuska871262f2015-09-09 17:14:01 -070010done
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"