Showing
2 changed files
with
11 additions
and
4 deletions
| ... | @@ -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. | ... | ... |
tools/test/bin/onos-ssh
0 → 100755
| 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 "$@" |
-
Please register or login to post a comment