3 source topologies/basic_two_odls.sh
5 ODL_CONFIG_FILE1="vpp1.json"
6 ODL_CONFIG_FILE2="vpp2.json"
8 if [ "$1" == "clean" ] ; then
13 if [[ $(id -u) != 0 ]]; then
14 echo "Error: run this as a root."
18 function start_map_resolver
20 echo "starting dummy map resolver on interface $1"
21 python scripts/dummy_mr.py "$1" 4342 &
25 function test_resolver_failover
29 start_map_resolver "6.0.3.100"
33 if [ "$3" == "wait" ] ; then
34 read -p "press any key to continue .." -n1
37 ip netns exec vppns1 "${1}" -w 20 -c 1 "${2}"
41 if [ "$3" == "wait" ] ; then
42 read -p "press any key to continue .." -n1
48 if [ $rc -ne 0 ] ; then
49 echo "Test failed: No ICMP response received within specified timeout limit!"