Ensure that $ONOS_CELL variable will not be overwritten when bash profile is loaded
you don't need to reload cell enviroment when open new terminal.
Change-Id: I073a6de71376e868d96e5216509c1d6b52bc7e52
diff --git a/tools/dev/bash_profile b/tools/dev/bash_profile
index 92b3e92..91798d9 100644
--- a/tools/dev/bash_profile
+++ b/tools/dev/bash_profile
@@ -27,6 +27,9 @@
export PATH="$PATH:$ONOS_ROOT/tools/build"
export PATH="$PATH:$MAVEN/bin:$KARAF_ROOT/bin"
+# Setup cell enviroment
+export ONOS_CELL=${ONOS_CELL:-local}
+
# Convenience utility to warp to various ONOS source projects
# e.g. 'o api', 'o dev', 'o'
function o {
@@ -112,7 +115,7 @@
fi
}
-cell local >/dev/null # Default cell is the local VMs
+cell $ONOS_CELL > /dev/null
# Lists available cells
function cells {