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/odl/rtr_single_iface/4o4/elp1.json | 42 ++++++++++++++++++++++ .../configs/odl/rtr_single_iface/4o4/elp2.json | 42 ++++++++++++++++++++++ .../configs/odl/rtr_single_iface/4o6/elp1.json | 42 ++++++++++++++++++++++ .../configs/odl/rtr_single_iface/4o6/elp2.json | 42 ++++++++++++++++++++++ .../rtr_single_iface/4o4/rtr.config | 10 ++++++ .../rtr_single_iface/4o4/vpp1.config | 12 +++++++ .../rtr_single_iface/4o4/vpp2.config | 12 +++++++ .../rtr_single_iface/4o6/rtr.config | 9 +++++ .../rtr_single_iface/4o6/vpp1.config | 13 +++++++ .../rtr_single_iface/4o6/vpp2.config | 13 +++++++ 10 files changed, 237 insertions(+) create mode 100644 tests/data_plane/configs/odl/rtr_single_iface/4o4/elp1.json create mode 100644 tests/data_plane/configs/odl/rtr_single_iface/4o4/elp2.json create mode 100644 tests/data_plane/configs/odl/rtr_single_iface/4o6/elp1.json create mode 100644 tests/data_plane/configs/odl/rtr_single_iface/4o6/elp2.json 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') diff --git a/tests/data_plane/configs/odl/rtr_single_iface/4o4/elp1.json b/tests/data_plane/configs/odl/rtr_single_iface/4o4/elp1.json new file mode 100644 index 0000000..a6275ca --- /dev/null +++ b/tests/data_plane/configs/odl/rtr_single_iface/4o4/elp1.json @@ -0,0 +1,42 @@ +{ + "input": { + "mapping-record": { + "recordTtl": 1440, + "action": "NoAction", + "authoritative": true, + "eid": { + "address-type": "ietf-lisp-address-types:ipv4-prefix-afi", + "ipv4-prefix": "6.0.2.0/24" + }, + "LocatorRecord": [ + { + "locator-id": "ELP", + "priority": 1, + "weight": 1, + "multicastPriority": 255, + "multicastWeight": 0, + "localLocator": true, + "rlocProbed": false, + "routed": false, + "rloc": { + "address-type": "ietf-lisp-address-types:explicit-locator-path-lcaf", + "explicit-locator-path": { + "hop": [ + { + "hop-id": "Hop 1", + "address": "6.0.3.3", + "lrs-bits": "lookup rloc-probe strict" + }, + { + "hop-id": "Hop 2", + "address": "6.0.3.1", + "lrs-bits": "lookup strict" + } + ] + } + } + } + ] + } + } +} diff --git a/tests/data_plane/configs/odl/rtr_single_iface/4o4/elp2.json b/tests/data_plane/configs/odl/rtr_single_iface/4o4/elp2.json new file mode 100644 index 0000000..d63f6b6 --- /dev/null +++ b/tests/data_plane/configs/odl/rtr_single_iface/4o4/elp2.json @@ -0,0 +1,42 @@ +{ + "input": { + "mapping-record": { + "recordTtl": 1440, + "action": "NoAction", + "authoritative": true, + "eid": { + "address-type": "ietf-lisp-address-types:ipv4-prefix-afi", + "ipv4-prefix": "6.0.4.0/24" + }, + "LocatorRecord": [ + { + "locator-id": "ELP", + "priority": 1, + "weight": 1, + "multicastPriority": 255, + "multicastWeight": 0, + "localLocator": true, + "rlocProbed": false, + "routed": false, + "rloc": { + "address-type": "ietf-lisp-address-types:explicit-locator-path-lcaf", + "explicit-locator-path": { + "hop": [ + { + "hop-id": "Hop 1", + "address": "6.0.3.3", + "lrs-bits": "lookup rloc-probe strict" + }, + { + "hop-id": "Hop 2", + "address": "6.0.3.2", + "lrs-bits": "lookup strict" + } + ] + } + } + } + ] + } + } +} diff --git a/tests/data_plane/configs/odl/rtr_single_iface/4o6/elp1.json b/tests/data_plane/configs/odl/rtr_single_iface/4o6/elp1.json new file mode 100644 index 0000000..211dce4 --- /dev/null +++ b/tests/data_plane/configs/odl/rtr_single_iface/4o6/elp1.json @@ -0,0 +1,42 @@ +{ + "input": { + "mapping-record": { + "recordTtl": 1440, + "action": "NoAction", + "authoritative": true, + "eid": { + "address-type": "ietf-lisp-address-types:ipv4-prefix-afi", + "ipv4-prefix": "6.0.2.0/24" + }, + "LocatorRecord": [ + { + "locator-id": "ELP", + "priority": 1, + "weight": 1, + "multicastPriority": 255, + "multicastWeight": 0, + "localLocator": true, + "rlocProbed": false, + "routed": false, + "rloc": { + "address-type": "ietf-lisp-address-types:explicit-locator-path-lcaf", + "explicit-locator-path": { + "hop": [ + { + "hop-id": "Hop 1", + "address": "6:0:3::3", + "lrs-bits": "lookup rloc-probe strict" + }, + { + "hop-id": "Hop 2", + "address": "6:0:3::1", + "lrs-bits": "lookup strict" + } + ] + } + } + } + ] + } + } +} diff --git a/tests/data_plane/configs/odl/rtr_single_iface/4o6/elp2.json b/tests/data_plane/configs/odl/rtr_single_iface/4o6/elp2.json new file mode 100644 index 0000000..94268e9 --- /dev/null +++ b/tests/data_plane/configs/odl/rtr_single_iface/4o6/elp2.json @@ -0,0 +1,42 @@ +{ + "input": { + "mapping-record": { + "recordTtl": 1440, + "action": "NoAction", + "authoritative": true, + "eid": { + "address-type": "ietf-lisp-address-types:ipv4-prefix-afi", + "ipv4-prefix": "6.0.4.0/24" + }, + "LocatorRecord": [ + { + "locator-id": "ELP", + "priority": 1, + "weight": 1, + "multicastPriority": 255, + "multicastWeight": 0, + "localLocator": true, + "rlocProbed": false, + "routed": false, + "rloc": { + "address-type": "ietf-lisp-address-types:explicit-locator-path-lcaf", + "explicit-locator-path": { + "hop": [ + { + "hop-id": "Hop 1", + "address": "6:0:3::3", + "lrs-bits": "lookup rloc-probe strict" + }, + { + "hop-id": "Hop 2", + "address": "6:0:3::2", + "lrs-bits": "lookup strict" + } + ] + } + } + } + ] + } + } +} 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