diff options
Diffstat (limited to 'tests/data_plane/vpp_lite_topo/lisp_ip4.sh')
-rw-r--r-- | tests/data_plane/vpp_lite_topo/lisp_ip4.sh | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/tests/data_plane/vpp_lite_topo/lisp_ip4.sh b/tests/data_plane/vpp_lite_topo/lisp_ip4.sh index f817a96..a03b0cb 100644 --- a/tests/data_plane/vpp_lite_topo/lisp_ip4.sh +++ b/tests/data_plane/vpp_lite_topo/lisp_ip4.sh @@ -22,12 +22,8 @@ sudo ip netns exec vppns2 \ ip route add 6.0.1.0/24 via 6.0.2.1 " -curl -X POST http://${ODL_IP}:${ODL_PORT}/restconf/operations/odl-mappingservice:add-mapping \ - -H "Content-Type: application/json" --data-binary "@${ODL_CONFIG_DIR}${ODL_ADD_CONFIG1}" \ - -u ${ODL_USER}:${ODL_PASSWD} -curl -X POST http://${ODL_IP}:${ODL_PORT}/restconf/operations/odl-mappingservice:add-mapping \ - -H "Content-Type: application/json" --data-binary "@${ODL_CONFIG_DIR}${ODL_ADD_CONFIG2}" \ - -u ${ODL_USER}:${ODL_PASSWD} +post_curl "add-mapping" ${ODL_ADD_CONFIG1} +post_curl "add-mapping" ${ODL_ADD_CONFIG2} ping_lisp @@ -40,8 +36,6 @@ send "set int ip address host-intervpp2 6.0.3.20/24\r" expect -re ".*>" EOF -curl -X POST http://${ODL_IP}:${ODL_PORT}/restconf/operations/odl-mappingservice:update-mapping \ - -H "Content-Type: application/json" --data-binary "@${ODL_CONFIG_DIR}${ODL_REPLACE_CONFIG2}" \ - -u ${ODL_USER}:${ODL_PASSWD} +post_curl "update-mapping" ${ODL_REPLACE_CONFIG2} ping_lisp |