summaryrefslogtreecommitdiffstats
path: root/tests/data_plane/vpp_lite_topo/test_driver/resolver_failover.sh
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2016-10-06 13:20:58 +0200
committerFilip Tehlar <ftehlar@cisco.com>2016-10-06 14:03:30 +0200
commitabc6884972bc0792f4817a3822f13128d716c889 (patch)
tree343e9a7170c424dd8774d5f57c9123096a7da91f /tests/data_plane/vpp_lite_topo/test_driver/resolver_failover.sh
parent18b298a6096f95362c4f38270166f335790f4d0b (diff)
Fix some test issues
* add sleep to v6 eid virt test * fix failover test * reuse topology setup at failover test Change-Id: I7f1234696a9cec7931984c4dcee79c2cf90287d1 Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'tests/data_plane/vpp_lite_topo/test_driver/resolver_failover.sh')
-rw-r--r--tests/data_plane/vpp_lite_topo/test_driver/resolver_failover.sh18
1 files changed, 4 insertions, 14 deletions
diff --git a/tests/data_plane/vpp_lite_topo/test_driver/resolver_failover.sh b/tests/data_plane/vpp_lite_topo/test_driver/resolver_failover.sh
index ea3a212..a278f56 100644
--- a/tests/data_plane/vpp_lite_topo/test_driver/resolver_failover.sh
+++ b/tests/data_plane/vpp_lite_topo/test_driver/resolver_failover.sh
@@ -1,9 +1,6 @@
source config.sh
source odl_utils.sh
-source topologies/basic_two_odls.sh
-
-ODL_CONFIG_FILE1="vpp1.json"
-ODL_CONFIG_FILE2="vpp2.json"
+source topologies/2_node_topo.sh
if [ "$1" == "clean" ] ; then
basic_two_odls_clean
@@ -15,18 +12,11 @@ if [[ $(id -u) != 0 ]]; then
exit 1
fi
-function start_map_resolver
-{
- echo "starting dummy map resolver on interface $1"
- python scripts/dummy_mr.py "$1" 4342 &
- mr_id=$!
-}
-
function test_resolver_failover
{
- basic_two_odls_setup
+ 2_node_topo_setup no_odl
- start_map_resolver "6.0.3.100"
+ start_map_resolver "6.0.3.200"
test_result=1
@@ -38,7 +28,7 @@ function test_resolver_failover
# test done
maybe_pause
- basic_two_odls_clean
+ 2_node_topo_clean no_odl
kill $mr_id
print_status $rc "No ICMP response!"