blob: 889fb77437442a00e9c8f34b557630365fe0aa9c [file] [log] [blame]
Andrea Campanella4f9085e2018-05-29 12:04:16 +02001#!/bin/bash
2
3remote=$ONOS_USER@$OCN
4mininet="ssh -t -t $remote screen -L -S mininet"
5
6CONTROLLERS="$OC1"
7
8echo >/tmp/invoke_trellis_p4 "cd routing/trellis && sudo -E env PYTHONPATH=$PYTHONPATH:~/bmv2-mininet ./trellisp4.py --onos-ip '$CONTROLLERS'"
9chmod +x /tmp/invoke_trellis_p4
10scp /tmp/invoke_trellis_p4 [$remote]:
11
12ssh $remote "rm -f $log; echo logfile flush 1 > ~/.screenrc"
13 (
14 $mininet ./invoke_trellis_p4
15 scp [$remote]:$log /tmp/mininet.log
16 ssh $remote rm -f $log
17 ) &
18
19
20
21
22