blob: c8245abbda8bfa7b25e0a1cc333eb77f2d1cefec [file] [log] [blame]
alshabibb7b40632014-09-28 21:30:00 -07001#!/bin/bash
2#-------------------------------------------------------------------------------
3# Verifies connectivity to each node in ONOS cell.
4#-------------------------------------------------------------------------------
5
6[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
7. $ONOS_ROOT/tools/build/envDefaults
8
9SSHCMD="ssh -o PasswordAuthentication=no"
10SCPCMD="scp -q -o PasswordAuthentication=no"
11
12echo "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
16echo "Starting Network."
17$SSHCMD -t $ONOS_USER@$OCN sudo python topos/sol.py $(env | sort | egrep "OC[0-9]+" | cut -d= -f2)