X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=tests%2Fdata_plane%2Fvpp_lite_topo%2Ftest_driver%2Fbasic.sh;fp=tests%2Fdata_plane%2Fvpp_lite_topo%2Ftest_driver%2Fbasic.sh;h=0575bb34dc479b26c7f9bc2560ef7a22d3e33b53;hb=ebfd5b56b3c336b87a919898174a7ee7aafe3364;hp=0cdf10dd1d9799edfc54614177f40a5afda10f62;hpb=013d3a566708c8877539befac1d85aec164e4f32;p=one.git diff --git a/tests/data_plane/vpp_lite_topo/test_driver/basic.sh b/tests/data_plane/vpp_lite_topo/test_driver/basic.sh index 0cdf10d..0575bb3 100644 --- a/tests/data_plane/vpp_lite_topo/test_driver/basic.sh +++ b/tests/data_plane/vpp_lite_topo/test_driver/basic.sh @@ -47,6 +47,39 @@ function test_basic exit $test_result } +function test_basic_map_register_fallback +{ + 2_node_topo_setup no_odl + + maybe_pause + + test_result=1 + + start_map_server "6.0.3.200" + + wait_for_map_register=20 + echo "Waiting for map registration $wait_for_map_register seconds .." + sleep $wait_for_map_register + + rc=1 + + count="`echo "show error" | nc 0 5002 | grep 'map-notifies received' | awk '{print $1}'`" + if [ "$count" != "" ] ; then + if [ $count -gt 0 ] ; then + echo "no map-notifies received! ($count)" + rc=0 # test passed + fi + fi + + maybe_pause + kill $ms_id + + # test done + 2_node_topo_clean no_odl + print_status $rc "map server fallback does not work!" + exit $test_result +} + function test_basic_map_register { 2_node_topo_setup no_odl