STC scenario for Trellis HAG topology
Change-Id: Ie0b40a15748a1d925167a247ac31f78b9ed206ac
diff --git a/tools/test/scenarios/bin/mininet-trellis b/tools/test/scenarios/bin/mininet-trellis
new file mode 100755
index 0000000..8be1922
--- /dev/null
+++ b/tools/test/scenarios/bin/mininet-trellis
@@ -0,0 +1,28 @@
+#!/bin/bash
+
+remote=$ONOS_USER@$OCN
+mininet="ssh -t -t $remote screen -L -S mininet"
+
+CONTROLLERS="$OC1"
+if [ "$OC2" != "" ]; then
+ CONTROLLERS=${CONTROLLERS},${OC2}
+fi
+if [ "$OC3" != "" ]; then
+ CONTROLLERS=${CONTROLLERS},${OC3}
+fi
+
+echo >/tmp/invoke_trellis_hag "cd routing/trellis && sudo ./trellis_hag.py -c '$CONTROLLERS'"
+chmod +x /tmp/invoke_trellis_hag
+scp /tmp/invoke_trellis_hag $remote:
+
+ssh $remote "rm -f $log; echo logfile flush 1 > ~/.screenrc"
+ (
+ $mininet ./invoke_trellis_hag
+ scp $remote:$log /tmp/mininet.log
+ ssh $remote rm -f $log
+ ) &
+
+
+
+
+