blob: 8be1922578b76eef87005883a6c2b4bf90752188 [file] [log] [blame]
Ray Milkey5d35f9c2018-04-02 08:54:51 -07001#!/bin/bash
2
3remote=$ONOS_USER@$OCN
4mininet="ssh -t -t $remote screen -L -S mininet"
5
6CONTROLLERS="$OC1"
7if [ "$OC2" != "" ]; then
8 CONTROLLERS=${CONTROLLERS},${OC2}
9fi
10if [ "$OC3" != "" ]; then
11 CONTROLLERS=${CONTROLLERS},${OC3}
12fi
13
14echo >/tmp/invoke_trellis_hag "cd routing/trellis && sudo ./trellis_hag.py -c '$CONTROLLERS'"
15chmod +x /tmp/invoke_trellis_hag
16scp /tmp/invoke_trellis_hag $remote:
17
18ssh $remote "rm -f $log; echo logfile flush 1 > ~/.screenrc"
19 (
20 $mininet ./invoke_trellis_hag
21 scp $remote:$log /tmp/mininet.log
22 ssh $remote rm -f $log
23 ) &
24
25
26
27
28