blob: 5b3cd6f70f778557e4ea32c8084fb4895c4fc4f1 [file] [log] [blame]
#!/bin/bash
# -----------------------------------------------------------------------------
# Sets controllers on all OVS bridges on the mininet machine.
# -----------------------------------------------------------------------------
controllers=""
for node in $ONOS_INSTANCES; do
controllers="$controllers tcp:$node:${OF_PORT:-6633}"
done
ssh ${ONOS_USER:-sdn}@$OCN "
sudo ovs-vsctl list-br | while read br; do
echo \$br: $controllers
sudo ovs-vsctl set-controller \$br $controllers
done
"