4 sudo ip netns exec vppns1 ping -c 10 6.0.2.2
6 echo "Can not ping other machine"
11 sudo ip netns exec vppns1 \
14 ip addr add 6.0.1.2/24 dev veth_vpp1
15 ip route add 6.0.2.0/24 via 6.0.1.1
18 sudo ip netns exec vppns2 \
21 ip addr add 6.0.2.2/24 dev veth_vpp2
22 ip route add 6.0.1.0/24 via 6.0.2.1
25 curl -X POST http://${ODL_IP}:${ODL_PORT}/restconf/operations/odl-mappingservice:add-mapping \
26 -H "Content-Type: application/json" --data-binary "@${ODL_CONFIG_DIR}${ODL_ADD_CONFIG1}" \
27 -u ${ODL_USER}:${ODL_PASSWD}
28 curl -X POST http://${ODL_IP}:${ODL_PORT}/restconf/operations/odl-mappingservice:add-mapping \
29 -H "Content-Type: application/json" --data-binary "@${ODL_CONFIG_DIR}${ODL_ADD_CONFIG2}" \
30 -u ${ODL_USER}:${ODL_PASSWD}
35 spawn telnet localhost 5003
37 send "set int ip address del host-intervpp2 6.0.3.2/24\r"
39 send "set int ip address host-intervpp2 6.0.3.20/24\r"
43 curl -X POST http://${ODL_IP}:${ODL_PORT}/restconf/operations/odl-mappingservice:update-mapping \
44 -H "Content-Type: application/json" --data-binary "@${ODL_CONFIG_DIR}${ODL_REPLACE_CONFIG2}" \
45 -u ${ODL_USER}:${ODL_PASSWD}