diff options
Diffstat (limited to 'tests/data_plane/csit_topo/lisp_ip6.sh')
-rw-r--r-- | tests/data_plane/csit_topo/lisp_ip6.sh | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/tests/data_plane/csit_topo/lisp_ip6.sh b/tests/data_plane/csit_topo/lisp_ip6.sh index eb0c172..20f0381 100644 --- a/tests/data_plane/csit_topo/lisp_ip6.sh +++ b/tests/data_plane/csit_topo/lisp_ip6.sh @@ -11,12 +11,8 @@ function ping_lisp6 { fi } -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_6}" \ - -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_6}" \ - -u ${ODL_USER}:${ODL_PASSWD} +post_curl "add-mapping" ${ODL_ADD_CONFIG1_6} +post_curl "add-mapping" ${ODL_ADD_CONFIG2_6} rsync -avz ${VPP_CONFIG_DIR}${VPP_CONFIG1_6} ${USER}@${VPP1_IP}:${TMP_DIR}/vpp1_6.conf rsync -avz ${VPP_CONFIG_DIR}${VPP_CONFIG2_6} ${USER}@${VPP2_IP}:${TMP_DIR}/vpp2_6.conf @@ -38,8 +34,6 @@ rsync -avz ${VPP_CONFIG_DIR}${VPP_RECONF2_6} ${USER}@${VPP2_IP}:${TMP_DIR}/vpp2 ssh_vpp2 "sudo vpp_api_test < ${TMP_DIR}/vpp2_reconf_6.conf" -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_6}" \ - -u ${ODL_USER}:${ODL_PASSWD} +post_curl "update-mapping" ${ODL_REPLACE_CONFIG2_6} ping_lisp6 |