summaryrefslogtreecommitdiffstats
path: root/tests/data_plane/vpp_lite_topo/config.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/data_plane/vpp_lite_topo/config.sh')
-rw-r--r--tests/data_plane/vpp_lite_topo/config.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/data_plane/vpp_lite_topo/config.sh b/tests/data_plane/vpp_lite_topo/config.sh
index 351df29..f7afa3c 100644
--- a/tests/data_plane/vpp_lite_topo/config.sh
+++ b/tests/data_plane/vpp_lite_topo/config.sh
@@ -6,6 +6,11 @@ ODL_PORT="8181"
# path to vpp executable
VPP_LITE_BIN=/vpp/build-root/install-vpp_lite_debug-native/vpp/bin/vpp
+# read user config file if exists
+if [ -f "${HOME}/.onerc" ] ; then
+ source "${HOME}/.onerc"
+fi
+
if [ ! -f "${VPP_LITE_BIN}" ] ; then
echo "Error: VPP binary not found. You can set VPP_LITE_BIN in config.sh"
echo "Current value:"