Fix NSH test
[one.git] / tests / data_plane / vpp_lite_topo / config.sh
index 375dddc..eaf2f84 100644 (file)
@@ -7,6 +7,8 @@ ODL_PORT="8181"
 VPP_LITE_DIR=/vpp/build-root/install-vpp_debug-native/vpp/bin
 VPP_LITE_BIN=${VPP_LITE_DIR}/vpp
 VPP_API_TEST=/vpp/build-root/install-vpp_debug-native/vpp-api-test/bin/vpp_api_test
+VPP_PLUGIN_DIR=${VPP_LITE_DIR}/../lib64/vpp_plugins
+ONE_ROOT=/vpp/one
 
 # read user config file if exists
 if [ -f "${HOME}/.onerc" ] ; then
@@ -116,8 +118,9 @@ function start_vpp
     unix { log /tmp/$2.log           \
            full-coredump             \
            cli-listen localhost:$1 } \
-    api-trace { on } api-segment { prefix "$2" }
-    plugins { plugin dpdk_plugin.so { disable } }
+    api-trace { on } api-segment { prefix "$2" } \
+    plugins { plugin dpdk_plugin.so { disable } } \
+    plugin_path ${VPP_PLUGIN_DIR} 2> /dev/null
 }
 
 function print_status
@@ -159,6 +162,13 @@ function start_map_resolver
   mr_id=$!
 }
 
+function start_map_server
+{
+  echo "starting dummy map server on interface $1"
+  python scripts/dummy_map_server.py "$1" 4342 &
+  ms_id=$!
+}
+
 function check_counters
 {
   python scripts/vat/check_counters.py ${VPP_API_TEST} ${VAT_TEMPLATES} "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8"