tom

Added a number of test tools.

...@@ -46,10 +46,7 @@ alias gui='open http://localhost:8181/onos/tvue' ...@@ -46,10 +46,7 @@ alias gui='open http://localhost:8181/onos/tvue'
46 # Test related conveniences 46 # Test related conveniences
47 47
48 # SSH to a specified ONOS instance 48 # SSH to a specified ONOS instance
49 -function sshctl { 49 +alias sshctl=onos-ssh
50 - [ -n "$1" ] && OCI=$1 && shift
51 - ssh -Y sdn@$OCI "$@"
52 -}
53 50
54 # Applies the settings in the specified cell file or lists current cell definition 51 # Applies the settings in the specified cell file or lists current cell definition
55 # if no cell file is given. 52 # if no cell file is given.
......
1 +#!/bin/bash
2 +#-------------------------------------------------------------------------------
3 +# Logs in to the remote ONOS instance.
4 +#-------------------------------------------------------------------------------
5 +
6 +[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
7 +. $ONOS_ROOT/tools/build/envDefaults
8 +
9 +[ -n "$1" ] && OCI=$1 && shift
10 +ssh -Y $ONOS_USER@$OCI "$@"