Thomas Vachuska
Committed by Gerrit Code Review

Ooops... fixed onos-cell tool.

Change-Id: I38cd19b3a22fe4516119165f0784247ab895b64d
...@@ -4,6 +4,12 @@ ...@@ -4,6 +4,12 @@
4 # definition if no cell file is given. 4 # definition if no cell file is given.
5 # ----------------------------------------------------------------------------- 5 # -----------------------------------------------------------------------------
6 6
7 +# Sets the primary instance to the specified instance number.
8 +function setPrimaryInstance {
9 + export OCI=$(env | egrep "OC[0-9]+" | sort | egrep OC${1:-1} | cut -d= -f2)
10 + echo $OCI
11 +}
12 +
7 cell=$1 13 cell=$1
8 case "$cell" in 14 case "$cell" in
9 "borrow") 15 "borrow")
...@@ -49,5 +55,5 @@ case "$cell" in ...@@ -49,5 +55,5 @@ case "$cell" in
49 . $ONOS_ROOT/tools/test/cells/$1 55 . $ONOS_ROOT/tools/test/cells/$1
50 export ONOS_INSTANCES=$(env | grep 'OC[0-9]*=' | sort | cut -d= -f2) 56 export ONOS_INSTANCES=$(env | grep 'OC[0-9]*=' | sort | cut -d= -f2)
51 setPrimaryInstance 1 >/dev/null 57 setPrimaryInstance 1 >/dev/null
52 - cell 58 + onos-cell
53 esac 59 esac
...\ No newline at end of file ...\ No newline at end of file
......