Clean up Karaf environment variables to avoid issues when switching from ONOS 1.x to 2.x
Note: sourcing bash_profile is still required after switching between branches
Change-Id: I6d8df459f6fab630b5b11695bba728b37074120d
diff --git a/tools/dev/bash_profile b/tools/dev/bash_profile
index 57025f5..ccb8b43 100644
--- a/tools/dev/bash_profile
+++ b/tools/dev/bash_profile
@@ -22,6 +22,9 @@
export MAVEN=${MAVEN:-~/Applications/apache-maven-3.3.9}
+# Clean up Karaf environment variables to avoid issues when switching from ONOS 1.x to 2.x
+unset KARAF_VERSION KARAF_ROOT KARAF_LOG
+
# Setup a path
export PATH="$PATH:$ONOS_ROOT/tools/dev/bin"
export PATH="$PATH:$ONOS_ROOT/tools/test/bin:$ONOS_ROOT/tools/test/scenarios/bin"