From ee85e2f832c4e11e041eeee9086b405de08a75d1 Mon Sep 17 00:00:00 2001 From: Jon Hall Date: Tue, 7 Jun 2016 10:36:33 -0700 Subject: [PATCH] Update ONOS_INSTANCES when updating OCI Change-Id: I416901175ba8662a07afe58ff2eb835cd51be242 --- tools/dev/bash_profile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/dev/bash_profile b/tools/dev/bash_profile index 3eff8b0f9c..3135bf75b5 100644 --- a/tools/dev/bash_profile +++ b/tools/dev/bash_profile @@ -99,6 +99,7 @@ alias sshnet='onos-ssh $OCN' # Sets the primary instance to the specified instance number. function setPrimaryInstance { + export ONOS_INSTANCES=$(env | grep 'OC[0-9]*=' | sort | cut -d= -f2) export OCI=$(env | egrep "OC[0-9]+" | sort | egrep OC${1:-1} | cut -d= -f2) echo $OCI } @@ -129,7 +130,6 @@ function cell { curl -sS -X POST "http://$CELL_WARDEN:4321/?$query" -d "$(cat ~/.ssh/id_rsa.pub)" > $aux . $aux rm -f $aux - export ONOS_INSTANCES=$(env | grep 'OC[0-9]*=' | sort | cut -d= -f2) setPrimaryInstance 1 >/dev/null onos-verify-cell ;; @@ -159,7 +159,6 @@ function cell { export ONOS_WEB_PASS=${ONOS_WEB_PASS:-rocks} export ONOS_CELL=$1 . $ONOS_ROOT/tools/test/cells/$1 - export ONOS_INSTANCES=$(env | grep 'OC[0-9]*=' | sort | cut -d= -f2) setPrimaryInstance 1 >/dev/null cell esac