3 source topologies/rtr_two_iface.sh
6 # set odl config json file names; they are common among all rtr tests
7 ODL_CONFIG_FILE1="elp1.json"
8 ODL_CONFIG_FILE2="elp2.json"
10 if [ "$1" == "clean" ] ; then
15 if [[ $(id -u) != 0 ]]; then
16 echo "Error: run this as a root."
20 function test_rtr_two_iface {
28 if [ "$1" != "${1#*[0-9].[0-9]}" ]; then
29 ip netns exec vpp1-ns ping -w 20 -c 1 "${1}"
31 elif [ "$1" != "${1#*:[0-9a-fA-F]}" ]; then
32 ip netns exec vpp1-ns ping6 -w 20 -c 1 "${1}"
35 echo "Unrecognized IP format '$1'"
41 print_status $rc "No ICMP response!"