Add RLOC-probe 4o6 63/4663/1
authorFilip Tehlar <ftehlar@cisco.com>
Thu, 12 Jan 2017 14:56:01 +0000 (15:56 +0100)
committerFilip Tehlar <ftehlar@cisco.com>
Thu, 12 Jan 2017 14:56:01 +0000 (15:56 +0100)
Change-Id: I651cf0ef74d2fcb5b06194a7b13c58a98fcae206
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
tests/data_plane/configs/vpp_lite_config/basic/4o6_rloc_probe/vpp1.config [new file with mode: 0644]
tests/data_plane/configs/vpp_lite_config/basic/4o6_rloc_probe/vpp2.config [new file with mode: 0644]
tests/data_plane/vpp_lite_topo/tests/manual_test_rloc_probe_4o6.sh [new file with mode: 0755]

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 (file)
index 0000000..a8134e2
--- /dev/null
@@ -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 (file)
index 0000000..2bcdfb7
--- /dev/null
@@ -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 (executable)
index 0000000..bdf784f
--- /dev/null
@@ -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"