diff options
author | Filip Tehlar <ftehlar@cisco.com> | 2016-05-26 15:57:49 +0200 |
---|---|---|
committer | Filip Tehlar <ftehlar@cisco.com> | 2016-05-27 09:00:22 +0200 |
commit | 4bf6318c1de924c63e22479cc38549ce3af3e420 (patch) | |
tree | bca01ef7f954c2f6ef5c33d215a89f47e5a5588d /tests/data_plane/vpp_lite_topo/lisp_test.sh | |
parent | 05767cf174f01c5ffdc317112dfabb64bd677a6c (diff) |
Add LISP RTR tests
This change adds tests for IPv4overIPv4 and IPv4overIPv6 scenarios.
Change-Id: I68e0e94538914cf0b03625ee1be3b92684184c78
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'tests/data_plane/vpp_lite_topo/lisp_test.sh')
-rwxr-xr-x | tests/data_plane/vpp_lite_topo/lisp_test.sh | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/tests/data_plane/vpp_lite_topo/lisp_test.sh b/tests/data_plane/vpp_lite_topo/lisp_test.sh index 2f09abb..33eee54 100755 --- a/tests/data_plane/vpp_lite_topo/lisp_test.sh +++ b/tests/data_plane/vpp_lite_topo/lisp_test.sh @@ -7,16 +7,13 @@ if [ "$1" == "-h" ] || [ "$1" == "-help" ] ; then echo " ip4_ip6 - test ip4 and ip6 topology" echo " 4o6 - test ip4 over ip6" echo " 6o4 - test ip6 over ip4" - echo " remote - test statick mapping, whit out ODL" - echo " remote6 - test statick mapping for IPv6, whit out ODL" + echo " remote - test static mapping, without ODL" + echo " remote6 - test static mapping for IPv6, without ODL" exit 0 fi set -x -# path to vpp executable and configurations folder -# VPP_LITE_BIN=/vpp/build-root/install-vpp_lite_debug-native/vpp/bin/vpp -VPP_LITE_BIN=/home/csit/lisp_vpp/build-root/install-vpp_lite_debug-native/vpp/bin/vpp VPP_LITE_CONF=`pwd`"/../configs/vpp_lite_config/" VPP1_CONF="vpp1.conf" VPP2_CONF="vpp2.conf" @@ -34,16 +31,8 @@ ODL_REPLACE_CONFIG2_4o6="replace_ipv4o6_odl2.txt" ODL_REPLACE_CONFIG2_6="replace_ipv6_odl2.txt" ODL_REPLACE_CONFIG2_6o4="replace_ipv6o4_odl2.txt" -ODL_USER="admin" -ODL_PASSWD="admin" -ODL_IP="127.0.0.1" -ODL_PORT="8181" - -function post_curl { - curl -X POST http://${ODL_IP}:${ODL_PORT}/restconf/operations/odl-mappingservice:${1} \ - -H "Content-Type: application/json" --data-binary "@${ODL_CONFIG_DIR}${2}" \ - -u ${ODL_USER}:${ODL_PASSWD} -} +source config.sh +source odl_utils.sh # make sure there are no vpp instances running sudo pkill vpp @@ -61,8 +50,7 @@ sudo ip netns del vppns2 &> /dev/null sudo ip netns del intervppns &> /dev/null if [ "$1" != "remote" ] && [ "$1" != "remote6" ] ; then - curl -X DELETE http://${ODL_IP}:${ODL_PORT}/restconf/config/odl-mappingservice:mapping-database/ \ - -u ${ODL_USER}:${ODL_PASSWD} + odl_clear_all fi if [ "$1" == "clean" ] ; then |