From 4bf6318c1de924c63e22479cc38549ce3af3e420 Mon Sep 17 00:00:00 2001 From: Filip Tehlar Date: Thu, 26 May 2016 15:57:49 +0200 Subject: Add LISP RTR tests This change adds tests for IPv4overIPv4 and IPv4overIPv6 scenarios. Change-Id: I68e0e94538914cf0b03625ee1be3b92684184c78 Signed-off-by: Filip Tehlar --- .../configs/vpp_lite_config/rtr_single_iface/4o4/rtr.config | 10 ++++++++++ .../vpp_lite_config/rtr_single_iface/4o4/vpp1.config | 12 ++++++++++++ .../vpp_lite_config/rtr_single_iface/4o4/vpp2.config | 12 ++++++++++++ .../configs/vpp_lite_config/rtr_single_iface/4o6/rtr.config | 9 +++++++++ .../vpp_lite_config/rtr_single_iface/4o6/vpp1.config | 13 +++++++++++++ .../vpp_lite_config/rtr_single_iface/4o6/vpp2.config | 13 +++++++++++++ 6 files changed, 69 insertions(+) create mode 100644 tests/data_plane/configs/vpp_lite_config/rtr_single_iface/4o4/rtr.config create mode 100644 tests/data_plane/configs/vpp_lite_config/rtr_single_iface/4o4/vpp1.config create mode 100644 tests/data_plane/configs/vpp_lite_config/rtr_single_iface/4o4/vpp2.config create mode 100644 tests/data_plane/configs/vpp_lite_config/rtr_single_iface/4o6/rtr.config create mode 100644 tests/data_plane/configs/vpp_lite_config/rtr_single_iface/4o6/vpp1.config create mode 100644 tests/data_plane/configs/vpp_lite_config/rtr_single_iface/4o6/vpp2.config (limited to 'tests/data_plane/configs/vpp_lite_config') diff --git a/tests/data_plane/configs/vpp_lite_config/rtr_single_iface/4o4/rtr.config b/tests/data_plane/configs/vpp_lite_config/rtr_single_iface/4o4/rtr.config new file mode 100644 index 0000000..7c603ec --- /dev/null +++ b/tests/data_plane/configs/vpp_lite_config/rtr_single_iface/4o4/rtr.config @@ -0,0 +1,10 @@ +create host-interface name xtr_rtr2 +set int state host-xtr_rtr2 up +set int ip address host-xtr_rtr2 6.0.3.3/24 + +lisp enable +lisp locator-set add ls1 iface host-xtr_rtr2 p 1 w 1 +lisp pitr ls ls1 +comment { lisp pitr disable } +lisp remote-mapping deid 6.0.0.0/16 action send-map-request +lisp map-resolver add 6.0.3.100 diff --git a/tests/data_plane/configs/vpp_lite_config/rtr_single_iface/4o4/vpp1.config b/tests/data_plane/configs/vpp_lite_config/rtr_single_iface/4o4/vpp1.config new file mode 100644 index 0000000..6aae05d --- /dev/null +++ b/tests/data_plane/configs/vpp_lite_config/rtr_single_iface/4o4/vpp1.config @@ -0,0 +1,12 @@ +create host-interface name vpp1 +set int state host-vpp1 up +set int ip address host-vpp1 6.0.2.1/24 +create host-interface name xtr_rtr1 +set int state host-xtr_rtr1 up +set int ip address host-xtr_rtr1 6.0.3.1/24 + +lisp enable + +lisp map-resolver add 6.0.3.100 +lisp locator-set add ls1 iface host-xtr_rtr1 p 1 w 1 +lisp eid-table add eid 6.0.2.0/24 locator-set ls1 diff --git a/tests/data_plane/configs/vpp_lite_config/rtr_single_iface/4o4/vpp2.config b/tests/data_plane/configs/vpp_lite_config/rtr_single_iface/4o4/vpp2.config new file mode 100644 index 0000000..9a10dc3 --- /dev/null +++ b/tests/data_plane/configs/vpp_lite_config/rtr_single_iface/4o4/vpp2.config @@ -0,0 +1,12 @@ +create host-interface name vpp2 +set int state host-vpp2 up +set int ip address host-vpp2 6.0.4.1/24 +create host-interface name xtr_rtr3 +set int state host-xtr_rtr3 up +set int ip address host-xtr_rtr3 6.0.3.2/24 + +lisp enable + +lisp map-resolver add 6.0.3.100 +lisp locator-set add ls1 iface host-xtr_rtr3 p 1 w 1 +lisp eid-table add eid 6.0.4.0/24 locator-set ls1 diff --git a/tests/data_plane/configs/vpp_lite_config/rtr_single_iface/4o6/rtr.config b/tests/data_plane/configs/vpp_lite_config/rtr_single_iface/4o6/rtr.config new file mode 100644 index 0000000..95622c9 --- /dev/null +++ b/tests/data_plane/configs/vpp_lite_config/rtr_single_iface/4o6/rtr.config @@ -0,0 +1,9 @@ +create host-interface name xtr_rtr2 +set int state host-xtr_rtr2 up +set int ip address host-xtr_rtr2 6:0:3::3/64 + +lisp enable +lisp locator-set add ls1 iface host-xtr_rtr2 p 1 w 1 +lisp pitr ls ls1 +lisp remote-mapping deid 6.0.0.0/16 action send-map-request +lisp map-resolver add 6:0:3::100 diff --git a/tests/data_plane/configs/vpp_lite_config/rtr_single_iface/4o6/vpp1.config b/tests/data_plane/configs/vpp_lite_config/rtr_single_iface/4o6/vpp1.config new file mode 100644 index 0000000..70b5a0e --- /dev/null +++ b/tests/data_plane/configs/vpp_lite_config/rtr_single_iface/4o6/vpp1.config @@ -0,0 +1,13 @@ +create host-interface name vpp1 +set int state host-vpp1 up +set int ip address host-vpp1 6.0.2.1/24 + +create host-interface name xtr_rtr1 +set int state host-xtr_rtr1 up +set int ip address host-xtr_rtr1 6:0:3::1/64 + +lisp enable + +lisp map-resolver add 6:0:3::100 +lisp locator-set add ls1 iface host-xtr_rtr1 p 1 w 1 +lisp eid-table add eid 6.0.2.0/24 locator-set ls1 diff --git a/tests/data_plane/configs/vpp_lite_config/rtr_single_iface/4o6/vpp2.config b/tests/data_plane/configs/vpp_lite_config/rtr_single_iface/4o6/vpp2.config new file mode 100644 index 0000000..f75135a --- /dev/null +++ b/tests/data_plane/configs/vpp_lite_config/rtr_single_iface/4o6/vpp2.config @@ -0,0 +1,13 @@ +create host-interface name vpp2 +set int state host-vpp2 up +set int ip address host-vpp2 6.0.4.1/24 + +create host-interface name xtr_rtr3 +set int state host-xtr_rtr3 up +set int ip address host-xtr_rtr3 6:0:3::2/64 + +lisp enable + +lisp map-resolver add 6:0:3::100 +lisp locator-set add ls1 iface host-xtr_rtr3 p 1 w 1 +lisp eid-table add eid 6.0.4.0/24 locator-set ls1 -- cgit 1.2.3-korg