alshabib | b7b4063 | 2014-09-28 21:30:00 -0700 | [diff] [blame] | 1 | #!/bin/bash |
Pavlin Radoslavov | 9141379 | 2014-10-15 11:00:32 -0700 | [diff] [blame] | 2 | # ----------------------------------------------------------------------------- |
alshabib | b7b4063 | 2014-09-28 21:30:00 -0700 | [diff] [blame] | 3 | # Verifies connectivity to each node in ONOS cell. |
Pavlin Radoslavov | 9141379 | 2014-10-15 11:00:32 -0700 | [diff] [blame] | 4 | # ----------------------------------------------------------------------------- |
alshabib | b7b4063 | 2014-09-28 21:30:00 -0700 | [diff] [blame] | 5 | |
| 6 | [ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1 |
| 7 | . $ONOS_ROOT/tools/build/envDefaults |
| 8 | |
| 9 | SSHCMD="ssh -o PasswordAuthentication=no" |
| 10 | SCPCMD="scp -q -o PasswordAuthentication=no" |
| 11 | |
| 12 | echo "Copying topology files to mininet vm." |
| 13 | $SSHCMD -n $ONOS_USER@$OCN mkdir -p topos |
| 14 | $SCPCMD $ONOS_ROOT/tools/test/topos/* $ONOS_USER@$OCN:topos/ |
| 15 | |
| 16 | echo "Starting Network." |
| 17 | $SSHCMD -t $ONOS_USER@$OCN sudo python topos/sol.py $(env | sort | egrep "OC[0-9]+" | cut -d= -f2) |