blob: 5b3cd6f70f778557e4ea32c8084fb4895c4fc4f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/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
"
|