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
24 if [ "$3" == "wait" ] ; then
25 read -p "press any key to continue .." -n1
30 ip netns exec vppns1 "${1}" -w 15 -c 1 "${2}"
33 if [ "$3" == "wait" ] ; then
34 read -p "press any key to continue .." -n1
37 if [ $rc -ne 0 ] ; then
38 echo "No response received!"
46 if [ $rc -ne 0 ] ; then
47 echo "Test failed: No ICMP response received within specified timeout limit!"