summaryrefslogtreecommitdiffstats
path: root/tests/data_plane/vpp_lite_topo/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/data_plane/vpp_lite_topo/tests')
-rwxr-xr-xtests/data_plane/vpp_lite_topo/tests/test_basic_4o4.sh10
-rwxr-xr-xtests/data_plane/vpp_lite_topo/tests/test_basic_4o4_and_6o6.sh11
-rwxr-xr-xtests/data_plane/vpp_lite_topo/tests/test_basic_4o4_no_odl.sh9
-rwxr-xr-xtests/data_plane/vpp_lite_topo/tests/test_basic_4o6.sh11
-rwxr-xr-xtests/data_plane/vpp_lite_topo/tests/test_basic_6o4.sh10
-rwxr-xr-xtests/data_plane/vpp_lite_topo/tests/test_basic_6o6.sh10
-rwxr-xr-xtests/data_plane/vpp_lite_topo/tests/test_basic_6o6_no_odl.sh10
-rwxr-xr-xtests/data_plane/vpp_lite_topo/tests/test_eid_virtualization_4o4.sh22
-rwxr-xr-xtests/data_plane/vpp_lite_topo/tests/test_eid_virtualization_4o6.sh22
-rwxr-xr-xtests/data_plane/vpp_lite_topo/tests/test_eid_virtualization_6o4.sh22
-rwxr-xr-xtests/data_plane/vpp_lite_topo/tests/test_eid_virtualization_6o6.sh22
-rwxr-xr-xtests/data_plane/vpp_lite_topo/tests/test_rtr_single_iface_4o4.sh20
-rwxr-xr-xtests/data_plane/vpp_lite_topo/tests/test_rtr_single_iface_4o6.sh20
-rwxr-xr-xtests/data_plane/vpp_lite_topo/tests/test_rtr_single_iface_6o4.sh19
-rwxr-xr-xtests/data_plane/vpp_lite_topo/tests/test_rtr_single_iface_6o6.sh20
-rwxr-xr-xtests/data_plane/vpp_lite_topo/tests/test_rtr_two_iface_4o4.sh20
-rwxr-xr-xtests/data_plane/vpp_lite_topo/tests/test_rtr_two_iface_4o6.sh20
-rwxr-xr-xtests/data_plane/vpp_lite_topo/tests/test_rtr_two_iface_6o46.sh19
-rwxr-xr-xtests/data_plane/vpp_lite_topo/tests/test_rtr_two_iface_two_customers_6o46.sh20
-rwxr-xr-xtests/data_plane/vpp_lite_topo/tests/test_smr_rtr_disjoint.sh20
20 files changed, 337 insertions, 0 deletions
diff --git a/tests/data_plane/vpp_lite_topo/tests/test_basic_4o4.sh b/tests/data_plane/vpp_lite_topo/tests/test_basic_4o4.sh
new file mode 100755
index 0000000..807edcc
--- /dev/null
+++ b/tests/data_plane/vpp_lite_topo/tests/test_basic_4o4.sh
@@ -0,0 +1,10 @@
+#!/usr/bin/env bash
+
+# Test basic LISP functionality (ip4 over ip4)
+
+VPP_LITE_CONF=`pwd`/../configs/vpp_lite_config/basic/4o4
+ODL_CONFIG_DIR=`pwd`/../configs/odl/basic/4o4
+
+source test_driver/basic.sh
+
+test_basic ping "6.0.2.2"
diff --git a/tests/data_plane/vpp_lite_topo/tests/test_basic_4o4_and_6o6.sh b/tests/data_plane/vpp_lite_topo/tests/test_basic_4o4_and_6o6.sh
new file mode 100755
index 0000000..9adeaf6
--- /dev/null
+++ b/tests/data_plane/vpp_lite_topo/tests/test_basic_4o4_and_6o6.sh
@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+
+# Test basic LISP functionality with two ongoing traffics - 4o4 and 6o6
+
+ODL_CONFIG_DIR=`pwd`/../configs/odl/basic/6o6
+VPP_LITE_CONF=`pwd`/../configs/vpp_lite_config/basic/4o4_and_6o6
+
+source test_driver/basic_multi_traffic.sh
+
+test_basic_multi_traffic ping6 "6:0:2::2" ping "6.0.2.2"
+
diff --git a/tests/data_plane/vpp_lite_topo/tests/test_basic_4o4_no_odl.sh b/tests/data_plane/vpp_lite_topo/tests/test_basic_4o4_no_odl.sh
new file mode 100755
index 0000000..0c2d2d0
--- /dev/null
+++ b/tests/data_plane/vpp_lite_topo/tests/test_basic_4o4_no_odl.sh
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+
+# Test basic LISP functionality without odl (ip4 over ip4)
+
+VPP_LITE_CONF=`pwd`/../configs/vpp_lite_config/basic/4o4_no_odl
+
+source test_driver/basic_no_odl.sh
+
+test_basic_no_odl ping "6.0.2.2"
diff --git a/tests/data_plane/vpp_lite_topo/tests/test_basic_4o6.sh b/tests/data_plane/vpp_lite_topo/tests/test_basic_4o6.sh
new file mode 100755
index 0000000..c9bd8de
--- /dev/null
+++ b/tests/data_plane/vpp_lite_topo/tests/test_basic_4o6.sh
@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+
+# Test basic LISP functionality (ip4 over ip6)
+
+VPP_LITE_CONF=`pwd`/../configs/vpp_lite_config/basic/4o6
+ODL_CONFIG_DIR=`pwd`/../configs/odl/basic/4o6
+
+source test_driver/basic.sh
+
+test_basic ping "6.0.2.2"
+
diff --git a/tests/data_plane/vpp_lite_topo/tests/test_basic_6o4.sh b/tests/data_plane/vpp_lite_topo/tests/test_basic_6o4.sh
new file mode 100755
index 0000000..757b7ce
--- /dev/null
+++ b/tests/data_plane/vpp_lite_topo/tests/test_basic_6o4.sh
@@ -0,0 +1,10 @@
+#!/usr/bin/env bash
+
+# Test basic LISP functionality (ip6 over ip4)
+
+VPP_LITE_CONF=`pwd`/../configs/vpp_lite_config/basic/6o4
+ODL_CONFIG_DIR=`pwd`/../configs/odl/basic/6o4
+
+source test_driver/basic.sh
+
+test_basic ping6 "6:0:2::2"
diff --git a/tests/data_plane/vpp_lite_topo/tests/test_basic_6o6.sh b/tests/data_plane/vpp_lite_topo/tests/test_basic_6o6.sh
new file mode 100755
index 0000000..3ef68f4
--- /dev/null
+++ b/tests/data_plane/vpp_lite_topo/tests/test_basic_6o6.sh
@@ -0,0 +1,10 @@
+#!/usr/bin/env bash
+
+# Test basic LISP functionality (ip6 over ip6)
+
+VPP_LITE_CONF=`pwd`/../configs/vpp_lite_config/basic/6o6
+ODL_CONFIG_DIR=`pwd`/../configs/odl/basic/6o6
+
+source test_driver/basic.sh
+
+test_basic ping6 "6:0:2::2"
diff --git a/tests/data_plane/vpp_lite_topo/tests/test_basic_6o6_no_odl.sh b/tests/data_plane/vpp_lite_topo/tests/test_basic_6o6_no_odl.sh
new file mode 100755
index 0000000..ce332d4
--- /dev/null
+++ b/tests/data_plane/vpp_lite_topo/tests/test_basic_6o6_no_odl.sh
@@ -0,0 +1,10 @@
+#!/usr/bin/env bash
+
+# Test basic LISP functionality without odl (ip6 over ip6)
+
+VPP_LITE_CONF=`pwd`/../configs/vpp_lite_config/basic/6o6_no_odl
+
+source test_driver/basic_no_odl.sh
+
+test_basic_no_odl ping6 "6:0:2::2"
+
diff --git a/tests/data_plane/vpp_lite_topo/tests/test_eid_virtualization_4o4.sh b/tests/data_plane/vpp_lite_topo/tests/test_eid_virtualization_4o4.sh
new file mode 100755
index 0000000..2038fd2
--- /dev/null
+++ b/tests/data_plane/vpp_lite_topo/tests/test_eid_virtualization_4o4.sh
@@ -0,0 +1,22 @@
+#!/usr/bin/env bash
+
+# Test EID virualization (4over4)
+#
+# This test configures two LISP XTRs with two customers. Both customers
+# have two client nodes (EID) as depict here:
+#
+# eid1 ______ _______ eid2
+# customer1 -| | | |- customer1
+# | xTR |----| xTR |
+# customer2 -|_____| | |_____|- customer2
+# eid3 | eid4
+# ODL
+#
+# In this scenario both eid1 and eid3 are equal.
+
+VPP_LITE_CONF=`pwd`"/../configs/vpp_lite_config/eid_virt/4o4"
+ODL_CONFIG_DIR=`pwd`"/../configs/odl/eid_virt/4o4"
+
+source test_driver/two_customers_topo.sh
+
+test_eid_virtualization ping "6.0.4.4"
diff --git a/tests/data_plane/vpp_lite_topo/tests/test_eid_virtualization_4o6.sh b/tests/data_plane/vpp_lite_topo/tests/test_eid_virtualization_4o6.sh
new file mode 100755
index 0000000..391da92
--- /dev/null
+++ b/tests/data_plane/vpp_lite_topo/tests/test_eid_virtualization_4o6.sh
@@ -0,0 +1,22 @@
+#!/usr/bin/env bash
+
+# Test EID virualization (4over6)
+#
+# This test configures two LISP XTRs with two customers. Both customers
+# have two client nodes (EID) as depict here:
+#
+# eid1 ______ _______ eid2
+# customer1 -| | | |- customer1
+# | xTR |----| xTR |
+# customer2 -|_____| | |_____|- customer2
+# eid3 | eid4
+# ODL
+#
+# In this scenario both eid1 and eid3 are equal.
+
+VPP_LITE_CONF=`pwd`"/../configs/vpp_lite_config/eid_virt/4o6"
+ODL_CONFIG_DIR=`pwd`"/../configs/odl/eid_virt/4o6"
+
+source test_driver/two_customers_topo.sh
+
+test_eid_virtualization ping "6.0.4.4"
diff --git a/tests/data_plane/vpp_lite_topo/tests/test_eid_virtualization_6o4.sh b/tests/data_plane/vpp_lite_topo/tests/test_eid_virtualization_6o4.sh
new file mode 100755
index 0000000..5d7f975
--- /dev/null
+++ b/tests/data_plane/vpp_lite_topo/tests/test_eid_virtualization_6o4.sh
@@ -0,0 +1,22 @@
+#!/usr/bin/env bash
+
+# Test EID virualization (6over4)
+#
+# This test configures two LISP XTRs with two customers. Both customers
+# have two client nodes (EID) as depict here:
+#
+# eid1 ______ _______ eid2
+# customer1 -| | | |- customer1
+# | xTR |----| xTR |
+# customer2 -|_____| | |_____|- customer2
+# eid3 | eid4
+# ODL
+#
+# In this scenario both eid1 and eid3 are equal.
+
+VPP_LITE_CONF=`pwd`"/../configs/vpp_lite_config/eid_virt/6o4"
+ODL_CONFIG_DIR=`pwd`"/../configs/odl/eid_virt/6o4"
+
+source test_driver/two_customers_topo.sh
+
+test_eid_virtualization ping6 "6:0:4::4"
diff --git a/tests/data_plane/vpp_lite_topo/tests/test_eid_virtualization_6o6.sh b/tests/data_plane/vpp_lite_topo/tests/test_eid_virtualization_6o6.sh
new file mode 100755
index 0000000..2b6d463
--- /dev/null
+++ b/tests/data_plane/vpp_lite_topo/tests/test_eid_virtualization_6o6.sh
@@ -0,0 +1,22 @@
+#!/usr/bin/env bash
+
+# Test EID virualization (6over6)
+#
+# This test configures two LISP XTRs with two customers. Both customers
+# have two client nodes (EID) as depict here:
+#
+# eid1 ______ _______ eid2
+# customer1 -| | | |- customer1
+# | xTR |----| xTR |
+# customer2 -|_____| | |_____|- customer2
+# eid3 | eid4
+# ODL
+#
+# In this scenario both eid1 and eid3 are equal.
+
+VPP_LITE_CONF=`pwd`"/../configs/vpp_lite_config/eid_virt/6o6"
+ODL_CONFIG_DIR=`pwd`"/../configs/odl/eid_virt/6o6"
+
+source test_driver/two_customers_topo.sh
+
+test_eid_virtualization ping6 "6:0:4::4"
diff --git a/tests/data_plane/vpp_lite_topo/tests/test_rtr_single_iface_4o4.sh b/tests/data_plane/vpp_lite_topo/tests/test_rtr_single_iface_4o4.sh
new file mode 100755
index 0000000..465a014
--- /dev/null
+++ b/tests/data_plane/vpp_lite_topo/tests/test_rtr_single_iface_4o4.sh
@@ -0,0 +1,20 @@
+#!/usr/bin/env bash
+
+#
+# Test for VPP LISP RTR functionality (4over4).
+#
+# IMPORTANT: This test needs to have ODL running with following config
+# line in etc/custom.properties:
+# lisp.elpPolicy = replace
+#
+# This test configures a topology of two XTRs and RTR. An ICMP request is
+# sent from host1 behind first TR to the host2 behind the second TR.
+# Both host and underlaying networks are IPv4.
+#
+
+VPP_LITE_CONF=`pwd`"/../configs/vpp_lite_config/rtr_single_iface/4o4"
+ODL_CONFIG_DIR=`pwd`"/../configs/odl/rtr_single_iface/4o4"
+
+source test_driver/rtr_single_iface.sh
+
+test_rtr_single_iface ping "6.0.4.4"
diff --git a/tests/data_plane/vpp_lite_topo/tests/test_rtr_single_iface_4o6.sh b/tests/data_plane/vpp_lite_topo/tests/test_rtr_single_iface_4o6.sh
new file mode 100755
index 0000000..1bc2474
--- /dev/null
+++ b/tests/data_plane/vpp_lite_topo/tests/test_rtr_single_iface_4o6.sh
@@ -0,0 +1,20 @@
+#!/usr/bin/env bash
+
+#
+# Test for VPP LISP RTR functionality (4over6).
+#
+# IMPORTANT: This test needs to have ODL running with following config
+# line in etc/custom.properties:
+# lisp.elpPolicy = replace
+#
+# This test configures a topology of two XTRs and RTR. An ICMP request is
+# sent from host1 behind first TR to the host2 behind the second TR.
+# Hosts resides in IPv4 network, underlying network is IPv6
+#
+
+VPP_LITE_CONF=`pwd`"/../configs/vpp_lite_config/rtr_single_iface/4o6/"
+ODL_CONFIG_DIR=`pwd`"/../configs/odl/rtr_single_iface/4o6"
+
+source test_driver/rtr_single_iface.sh
+
+test_rtr_single_iface ping "6.0.4.4"
diff --git a/tests/data_plane/vpp_lite_topo/tests/test_rtr_single_iface_6o4.sh b/tests/data_plane/vpp_lite_topo/tests/test_rtr_single_iface_6o4.sh
new file mode 100755
index 0000000..ced8729
--- /dev/null
+++ b/tests/data_plane/vpp_lite_topo/tests/test_rtr_single_iface_6o4.sh
@@ -0,0 +1,19 @@
+#!/usr/bin/env bash
+
+#
+# Test for VPP LISP RTR functionality (6over4).
+#
+# IMPORTANT: This test needs to have ODL running with following config
+# line in etc/custom.properties:
+# lisp.elpPolicy = replace
+#
+# This test configures a topology of two XTRs and RTR. An ICMP request is
+# sent from host1 behind first TR to the host2 behind the second TR.
+#
+
+VPP_LITE_CONF=`pwd`"/../configs/vpp_lite_config/rtr_single_iface/6o4/"
+ODL_CONFIG_DIR=`pwd`"/../configs/odl/rtr_single_iface/6o4"
+
+source test_driver/rtr_single_iface.sh
+
+test_rtr_single_iface ping6 "6:0:4::4"
diff --git a/tests/data_plane/vpp_lite_topo/tests/test_rtr_single_iface_6o6.sh b/tests/data_plane/vpp_lite_topo/tests/test_rtr_single_iface_6o6.sh
new file mode 100755
index 0000000..184c4ac
--- /dev/null
+++ b/tests/data_plane/vpp_lite_topo/tests/test_rtr_single_iface_6o6.sh
@@ -0,0 +1,20 @@
+#!/usr/bin/env bash
+
+#
+# Test for VPP LISP RTR functionality (6over6).
+#
+# IMPORTANT: This test needs to have ODL running with following config
+# line in etc/custom.properties:
+# lisp.elpPolicy = replace
+#
+# This test configures a topology of two XTRs and RTR. An ICMP request is
+# sent from host1 behind first TR to the host2 behind the second TR.
+# Both underlying and overlying networks are IPv6
+#
+
+VPP_LITE_CONF=`pwd`"/../configs/vpp_lite_config/rtr_single_iface/6o6/"
+ODL_CONFIG_DIR=`pwd`"/../configs/odl/rtr_single_iface/6o6"
+
+source test_driver/rtr_single_iface.sh
+
+test_rtr_single_iface ping6 "6:0:4::4"
diff --git a/tests/data_plane/vpp_lite_topo/tests/test_rtr_two_iface_4o4.sh b/tests/data_plane/vpp_lite_topo/tests/test_rtr_two_iface_4o4.sh
new file mode 100755
index 0000000..c45bb3f
--- /dev/null
+++ b/tests/data_plane/vpp_lite_topo/tests/test_rtr_two_iface_4o4.sh
@@ -0,0 +1,20 @@
+#!/usr/bin/env bash
+
+#
+# Test for VPP LISP RTR functionality (4over4).
+#
+# IMPORTANT: This test needs to have ODL running with following config
+# line in etc/custom.properties:
+# lisp.elpPolicy = replace
+#
+# This test configures a topology of two XTRs and RTR. An ICMP request is
+# sent from host1 behind first TR to the host2 behind the second TR.
+# Both host and underlaying networks are IPv4.
+#
+
+VPP_LITE_CONF=`pwd`"/../configs/vpp_lite_config/rtr_two_iface/4o4"
+ODL_CONFIG_DIR=`pwd`"/../configs/odl/rtr_two_iface/4o4/"
+
+source test_driver/rtr_two_iface.sh
+
+test_rtr_two_iface "6.0.4.4"
diff --git a/tests/data_plane/vpp_lite_topo/tests/test_rtr_two_iface_4o6.sh b/tests/data_plane/vpp_lite_topo/tests/test_rtr_two_iface_4o6.sh
new file mode 100755
index 0000000..0d7015b
--- /dev/null
+++ b/tests/data_plane/vpp_lite_topo/tests/test_rtr_two_iface_4o6.sh
@@ -0,0 +1,20 @@
+#!/usr/bin/env bash
+
+#
+# Test for VPP LISP RTR functionality (4over4).
+#
+# IMPORTANT: This test needs to have ODL running with following config
+# line in etc/custom.properties:
+# lisp.elpPolicy = replace
+#
+# This test configures a topology of two XTRs and RTR. An ICMP request is
+# sent from host1 behind first TR to the host2 behind the second TR.
+# Both host and underlaying networks are IPv4.
+#
+
+VPP_LITE_CONF=`pwd`"/../configs/vpp_lite_config/rtr_two_iface/4o6"
+ODL_CONFIG_DIR=`pwd`"/../configs/odl/rtr_two_iface/4o6/"
+
+source test_driver/rtr_two_iface.sh
+
+test_rtr_two_iface "6.0.4.4"
diff --git a/tests/data_plane/vpp_lite_topo/tests/test_rtr_two_iface_6o46.sh b/tests/data_plane/vpp_lite_topo/tests/test_rtr_two_iface_6o46.sh
new file mode 100755
index 0000000..1df6678
--- /dev/null
+++ b/tests/data_plane/vpp_lite_topo/tests/test_rtr_two_iface_6o46.sh
@@ -0,0 +1,19 @@
+#!/usr/bin/env bash
+
+#
+# Test for VPP LISP RTR functionality (6over46).
+#
+# IMPORTANT: This test needs to have ODL running with following config
+# line in etc/custom.properties:
+# lisp.elpPolicy = replace
+#
+# This test configures a topology of two XTRs and RTR. An ICMP request is
+# sent from host1 behind first TR to the host2 behind the second TR.
+#
+
+VPP_LITE_CONF=`pwd`"/../configs/vpp_lite_config/rtr_two_iface/6o46"
+ODL_CONFIG_DIR=`pwd`"/../configs/odl/rtr_two_iface/6o46"
+
+source test_driver/rtr_two_iface.sh
+
+test_rtr_two_iface "6:0:4::4"
diff --git a/tests/data_plane/vpp_lite_topo/tests/test_rtr_two_iface_two_customers_6o46.sh b/tests/data_plane/vpp_lite_topo/tests/test_rtr_two_iface_two_customers_6o46.sh
new file mode 100755
index 0000000..eac2a7c
--- /dev/null
+++ b/tests/data_plane/vpp_lite_topo/tests/test_rtr_two_iface_two_customers_6o46.sh
@@ -0,0 +1,20 @@
+#!/usr/bin/env bash
+
+#
+# Test for VPP LISP RTR functionality with EID virualization.
+#
+# IMPORTANT: This test needs to have ODL running with following config
+# line in etc/custom.properties:
+# lisp.elpPolicy = replace
+#
+# This test configures a topology of two XTRs and RTR. An ICMP request is
+# sent from host1 behind first TR to the host2 behind the second TR.
+#
+#
+
+VPP_LITE_CONF=`pwd`"/../configs/vpp_lite_config/rtr_two_iface_two_customers/6o46"
+ODL_CONFIG_DIR=`pwd`"/../configs/odl/rtr_two_iface_two_customers/6o46"
+
+source test_driver/rtr_two_iface_two_customers.sh
+
+test_rtr_two_iface_two_customers ping6 "6:0:4::4"
diff --git a/tests/data_plane/vpp_lite_topo/tests/test_smr_rtr_disjoint.sh b/tests/data_plane/vpp_lite_topo/tests/test_smr_rtr_disjoint.sh
new file mode 100755
index 0000000..0c49698
--- /dev/null
+++ b/tests/data_plane/vpp_lite_topo/tests/test_smr_rtr_disjoint.sh
@@ -0,0 +1,20 @@
+#!/usr/bin/env bash
+
+#
+# Test for VPP LISP RTR functionality (4over4).
+#
+# IMPORTANT: This test needs to have ODL running with following config
+# line in etc/custom.properties:
+# lisp.elpPolicy = replace
+#
+# This test configures a topology of two XTRs and RTR. An ICMP request is
+# sent from host1 behind first TR to the host2 behind the second TR.
+# Both host and underlaying networks are IPv4.
+#
+
+VPP_LITE_CONF=`pwd`"/../configs/vpp_lite_config/smr_rtr_disjoint/"
+ODL_CONFIG_DIR=`pwd`"/../configs/odl/smr_rtr_disjoint/"
+
+source test_driver/smr_rtr_disjoint.sh
+
+test_smr_rtr_disjoint "6:0:4::4"