3 source topologies/two_customers_topo.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
11 two_customers_topo_clean
15 if [[ $(id -u) != 0 ]]; then
16 echo "Error: run this as a root."
20 function test_eid_virtualization {
21 two_customers_topo_clean
23 two_customers_topo_setup
28 #read -p "press any key to continue .." -n1
30 ip netns exec vpp1-cus1-ns "${1}" -w 20 -c 1 "${2}"
32 if [ $rc -ne 0 ] ; then
33 echo "Error: customer 1 did not reveive any response!"
36 #read -p "press any key to continue .." -n1
38 ip netns exec vpp1-cus2-ns "${1}" -w 20 -c 1 "${2}"
40 if [ $rc -ne 0 ] ; then
41 echo "Error: customer 2 did not reveive any response!"
44 # two_customers_topo_clean
46 if [ $rc -ne 0 ] ; then