3 source topologies/basic_topo.sh
5 ODL_CONFIG_FILE1="vpp1.json"
6 ODL_CONFIG_FILE2="vpp2.json"
7 ODL_CONFIG_FILE3="update_vpp2.json"
9 if [ "$1" == "clean" ] ; then
14 if [[ $(id -u) != 0 ]]; then
15 echo "Error: run this as a root."
21 if [ "$3" != "no_setup" ] ; then
27 ip netns exec vppns1 "${1}" -w 15 -c 1 "${2}"
29 if [ $rc -ne 0 ] ; then
30 echo "No response received!"
35 # change IP addresses of destination RLOC
36 echo "set int ip address del host-intervpp2 6.0.3.2/24" | nc 0 5003
37 echo "set int ip address host-intervpp2 6.0.3.20/24" | nc 0 5003
38 echo "set int ip address del host-intervpp2 6:0:3::2/24" | nc 0 5003
39 echo "set int ip address host-intervpp2 6:0:3::20/24" | nc 0 5003
40 post_curl "update-mapping" ${ODL_CONFIG_FILE3}
42 ip netns exec vppns1 "${1}" -w 15 -c 1 "${2}"
48 if [ $rc -ne 0 ] ; then
49 echo "Test failed: No ICMP response received within specified timeout limit!"