Change-Id: Ia6b50dcf94680d65f13a2f7aebb7a53bfccfe492
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
cli-listen localhost:$1 } \
api-trace { on } api-segment { prefix "$2" } \
plugins { plugin dpdk_plugin.so { disable } } \
cli-listen localhost:$1 } \
api-trace { on } api-segment { prefix "$2" } \
plugins { plugin dpdk_plugin.so { disable } } \
- plugin_path ${VPP_PLUGIN_DIR}
+ plugin_path ${VPP_PLUGIN_DIR} 2> /dev/null
# run the test case
base_name=`basename -a "$test_case"`
printf "*** %2d/%d : %-48s" $count $test_num "$base_name"
# run the test case
base_name=`basename -a "$test_case"`
printf "*** %2d/%d : %-48s" $count $test_num "$base_name"
+ logger "*** test start $base_name"
if [ $verbose -ne 0 ] ; then
"$test_case"
if [ $verbose -ne 0 ] ; then
"$test_case"
printf "passed.\n"
let "passed_num=$passed_num + 1"
fi
printf "passed.\n"
let "passed_num=$passed_num + 1"
fi
+ logger "*** test end $base_name: result: $rc"
echo "trace add af-packet-input 100" | nc 0 5002
echo "trace add af-packet-input 100" | nc 0 5003
echo "exec ${ONE_ROOT}/tests/data_plane/vpp_lite_topo/scripts/lisp_nsh" | nc 0 5002
echo "trace add af-packet-input 100" | nc 0 5002
echo "trace add af-packet-input 100" | nc 0 5003
echo "exec ${ONE_ROOT}/tests/data_plane/vpp_lite_topo/scripts/lisp_nsh" | nc 0 5002
- echo "packet-generator enable-stream nsh1" | nc 0 5002
# add dummy node to ETR
echo "test one nsh add-dummy-decap-node" | nc 0 5003
# add dummy node to ETR
echo "test one nsh add-dummy-decap-node" | nc 0 5003
+ echo "packet-generator enable-stream nsh1" | nc 0 5002
+
+ echo "enabling stream"
+ sleep 1
# inject NSH packet to ITR
echo "test one nsh pcap ${ONE_ROOT}/tests/data_plane/vpp_lite_topo/scripts/nsh.pcap" | nc 0 5002
# inject NSH packet to ITR
echo "test one nsh pcap ${ONE_ROOT}/tests/data_plane/vpp_lite_topo/scripts/nsh.pcap" | nc 0 5002
# check decap stats
decap_stats="`echo "show errors" | nc 0 5003 | grep "lisp gpe dummy nsh decap" | awk '{print $1}'`"
# check decap stats
decap_stats="`echo "show errors" | nc 0 5003 | grep "lisp gpe dummy nsh decap" | awk '{print $1}'`"
maybe_pause
2_node_topo_clean
print_status $rc "NSH test failed!"
maybe_pause
2_node_topo_clean
print_status $rc "NSH test failed!"