blob: 1e162fb46d2b8af1815eaa3970549dfe3d94d620 [file] [log] [blame]
alshabibb7b40632014-09-28 21:30:00 -07001#!/bin/bash
Pavlin Radoslavov91413792014-10-15 11:00:32 -07002# -----------------------------------------------------------------------------
alshabibb7b40632014-09-28 21:30:00 -07003# Verifies connectivity to each node in ONOS cell.
Pavlin Radoslavov91413792014-10-15 11:00:32 -07004# -----------------------------------------------------------------------------
alshabibb7b40632014-09-28 21:30:00 -07005
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)