Added a new topology and a tool to set controllers on all OVS bridges remotely.
Change-Id: I875fbc8bec844ac30d1d8bccff0db45ad7c4ac71
diff --git a/tools/test/bin/onos-set-controllers b/tools/test/bin/onos-set-controllers
new file mode 100755
index 0000000..5b3cd6f
--- /dev/null
+++ b/tools/test/bin/onos-set-controllers
@@ -0,0 +1,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
+"