4 source topologies/rtr_single_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
11 rtr_single_iface_clean
15 if [[ $(id -u) != 0 ]]; then
16 echo "Error: run this as a root."
20 function test_rtr_single_iface {
21 rtr_single_iface_setup
25 ip netns exec vpp-ns1 ping -w 15 -c 1 "${1}"
28 rtr_single_iface_clean
30 if [ $rc -ne 0 ] ; then
31 echo "Test failed: No ICMP response received within specified timeout limit!"