3 source topologies/rtr_two_iface_two_customers.sh
5 ODL_CONFIG_FILE1="vpp1_customer1.json"
6 ODL_CONFIG_FILE2="vpp2_customer1.json"
7 ODL_CONFIG_FILE3="vpp1_customer2.json"
8 ODL_CONFIG_FILE4="vpp2_customer2.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_two_customers {
21 rtr_two_iface_two_customers_setup
29 ip netns exec vpp1-cus1-ns "${1}" -w 20 -c 1 "${2}"
30 assert_rc_ok $? rtr_two_iface_two_customers_clean "No response received!"
32 ip netns exec vpp1-cus2-ns "${1}" -w 20 -c 1 "${2}"
37 rtr_two_iface_two_customers_clean
38 print_status $rc "No ICMP response!"