summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2017-01-12 15:56:01 +0100
committerFilip Tehlar <ftehlar@cisco.com>2017-01-12 15:56:01 +0100
commit211f4f467e6a9228ab3e2e58a8e6e29d163dbb12 (patch)
tree349671665e4c287d8a4a2480f30cc453a0361149 /tests
parenteb34bf736c309677e631587b02ebe58b6727e6a7 (diff)
Add RLOC-probe 4o6
Change-Id: I651cf0ef74d2fcb5b06194a7b13c58a98fcae206 Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/data_plane/configs/vpp_lite_config/basic/4o6_rloc_probe/vpp1.config8
-rw-r--r--tests/data_plane/configs/vpp_lite_config/basic/4o6_rloc_probe/vpp2.config7
-rwxr-xr-xtests/data_plane/vpp_lite_topo/tests/manual_test_rloc_probe_4o6.sh18
3 files changed, 33 insertions, 0 deletions
diff --git a/tests/data_plane/configs/vpp_lite_config/basic/4o6_rloc_probe/vpp1.config b/tests/data_plane/configs/vpp_lite_config/basic/4o6_rloc_probe/vpp1.config
new file mode 100644
index 0000000..a8134e2
--- /dev/null
+++ b/tests/data_plane/configs/vpp_lite_config/basic/4o6_rloc_probe/vpp1.config
@@ -0,0 +1,8 @@
+create_host_iface vpp1 6.0.1.1/24
+create_host_iface intervpp1 6:0:3::1/64
+
+lisp_state enable
+lisp_locator_set_with_locator ls1 host-intervpp1 1 1
+lisp_local_eid eid 6.0.1.0/24 locator-set ls1
+lisp_map_resolver 6:0:3::100
+lisp_rloc_probe_state enable
diff --git a/tests/data_plane/configs/vpp_lite_config/basic/4o6_rloc_probe/vpp2.config b/tests/data_plane/configs/vpp_lite_config/basic/4o6_rloc_probe/vpp2.config
new file mode 100644
index 0000000..2bcdfb7
--- /dev/null
+++ b/tests/data_plane/configs/vpp_lite_config/basic/4o6_rloc_probe/vpp2.config
@@ -0,0 +1,7 @@
+create_host_iface vpp2 6.0.2.1/24
+create_host_iface intervpp2 6:0:3::2/64
+
+lisp_state enable
+lisp_locator_set_with_locator ls1 host-intervpp2 1 1
+lisp_local_eid eid 6.0.2.0/24 locator-set ls1
+lisp_map_resolver 6:0:3::100
diff --git a/tests/data_plane/vpp_lite_topo/tests/manual_test_rloc_probe_4o6.sh b/tests/data_plane/vpp_lite_topo/tests/manual_test_rloc_probe_4o6.sh
new file mode 100755
index 0000000..bdf784f
--- /dev/null
+++ b/tests/data_plane/vpp_lite_topo/tests/manual_test_rloc_probe_4o6.sh
@@ -0,0 +1,18 @@
+#!/usr/bin/env bash
+
+# Manual test for LISP RLOC probe
+#
+# Test procedure:
+# 1) run the test
+# 2) the test stops its execution after few seconds.
+# At that moment there should be a LISP tunnel configured
+# 3) Attach wireshark to intervpp1 or intervpp2 interface and check if there
+# are map-requests and map-replies coming forth and back with RLOC probe
+# bit set in the LISP header.
+
+VPP_LITE_CONF=`pwd`/../configs/vpp_lite_config/basic/4o6_rloc_probe
+ODL_CONFIG_DIR=`pwd`/../configs/odl/basic/4o6
+
+source test_driver/basic.sh
+
+test_rloc_probe ping "6.0.2.2"