Change-Id: Ica2a26210003e8ef07e0a57fa55ea144c942700c
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
--- /dev/null
+create_host_iface vpp1 6.0.1.1/24
+create_host_iface intervpp1 6.0.3.1/24
+
+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_remote_mapping eid 6.0.2.0/24 action drop
--- /dev/null
+create_host_iface vpp2 6.0.2.1/24
+create_host_iface intervpp2 6.0.3.2/24
+
+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_remote_mapping eid 6.0.1.0/24 rloc 6.0.3.1
+function test_negative_mapping
+{
+ 2_node_topo_setup no_odl
+ maybe_pause
+
+ test_result=1
+
+ ip netns exec vppns1 "${1}" -w 15 -c 1 "${2}"
+ rc=$?
+
+ # test done
+ 2_node_topo_clean no_odl
+ if [ $rc -eq 0 ] ; then
+ echo "Test failed!"
+ else
+ echo "Test passed."
+ test_result=0
+ fi
+
+ exit $test_result
+}
--- /dev/null
+#!/usr/bin/env bash
+
+# Test negative mapping
+
+VPP_LITE_CONF=`pwd`/../configs/vpp_lite_config/basic/4o4_neg_mapping
+
+source test_driver/basic_no_odl.sh
+
+test_negative_mapping ping "6.0.2.2"