Change onos-wait-for-start and onos-service to allow addressing nodes by integer
(e.g. you can use 1 instead of $OC1)
Change-Id: I2bbf18c55da713bf0947d3597710d59ed6f41dc1
diff --git a/tools/test/bin/onos-wait-for-start b/tools/test/bin/onos-wait-for-start
index ffaa402..e643b5a 100755
--- a/tools/test/bin/onos-wait-for-start
+++ b/tools/test/bin/onos-wait-for-start
@@ -5,8 +5,11 @@
[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
. $ONOS_ROOT/tools/build/envDefaults
+. $ONOS_ROOT/tools/test/bin/find-node.sh
-remote=$ONOS_USER@${1:-$OCI}
+node=$(find_node ${1:-$OCI})
+
+remote=$ONOS_USER@$node
ssh -t $remote "
# Wait until we reach the run-level 100