Ooops... fixed onos-cell tool.
Change-Id: I38cd19b3a22fe4516119165f0784247ab895b64d
diff --git a/tools/test/bin/onos-cell b/tools/test/bin/onos-cell
index f2b9908..275ad23 100755
--- a/tools/test/bin/onos-cell
+++ b/tools/test/bin/onos-cell
@@ -4,6 +4,12 @@
# definition if no cell file is given.
# -----------------------------------------------------------------------------
+# Sets the primary instance to the specified instance number.
+function setPrimaryInstance {
+ export OCI=$(env | egrep "OC[0-9]+" | sort | egrep OC${1:-1} | cut -d= -f2)
+ echo $OCI
+}
+
cell=$1
case "$cell" in
"borrow")
@@ -49,5 +55,5 @@
. $ONOS_ROOT/tools/test/cells/$1
export ONOS_INSTANCES=$(env | grep 'OC[0-9]*=' | sort | cut -d= -f2)
setPrimaryInstance 1 >/dev/null
- cell
+ onos-cell
esac
\ No newline at end of file