3 source topologies/basic_topo_l2.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."
20 if [ "$3" != "no_setup" ] ; then
27 ip netns exec vppns1 "${1}" -w 15 -c 1 "${2}"
31 assert_rc_ok $rc basic_topo_clean "No response received!"
36 print_status $rc "No ICM response!"
40 function test_single_icmp
42 if [ "$3" != "no_setup" ] ; then
43 basic_topo_setup no_odl
49 ip netns exec vppns1 "${1}" -c 1 "${2}"
52 check_counters "vpp1" "10" $3 $4 $5 $6 $7 $8
53 assert_rc_ok $? "basic_topo_clean no_odl" "Counters do not match!"
57 basic_topo_clean no_odl
58 print_status $rc "No ICM response!"