diff options
author | Filip Tehlar <ftehlar@cisco.com> | 2017-08-04 13:12:57 +0200 |
---|---|---|
committer | Filip Tehlar <ftehlar@cisco.com> | 2017-08-04 13:12:57 +0200 |
commit | ebfd5b56b3c336b87a919898174a7ee7aafe3364 (patch) | |
tree | fe578fdab7c43daac0ce94dd4685dddb47218a23 /tests/data_plane/vpp_lite_topo/test_driver/basic.sh | |
parent | 013d3a566708c8877539befac1d85aec164e4f32 (diff) |
Add map server fallback test
Change-Id: I48bf31b15253a1b9d1be785af319ef7466fa50bd
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'tests/data_plane/vpp_lite_topo/test_driver/basic.sh')
-rw-r--r-- | tests/data_plane/vpp_lite_topo/test_driver/basic.sh | 33 |
1 files changed, 33 insertions, 0 deletions
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 |