From 9b9b4ff50703cd969842bb8c5f869a38edf2ea18 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Wed, 15 Jun 2016 19:57:48 +0200 Subject: Add tests for disjoint locators use cases Change-Id: I2046bf0785bb0024d1b2e099d55da7fbefd70fc0 Signed-off-by: Florin Coras --- .../configs/odl/rtr_two_iface/4o4/elp1.json | 42 ++++++++++++++++++++++ .../configs/odl/rtr_two_iface/4o4/elp2.json | 42 ++++++++++++++++++++++ .../configs/odl/rtr_two_iface/4o6/elp1.json | 42 ++++++++++++++++++++++ .../configs/odl/rtr_two_iface/4o6/elp2.json | 42 ++++++++++++++++++++++ .../configs/odl/rtr_two_iface/mixed/elp1.json | 42 ++++++++++++++++++++++ .../configs/odl/rtr_two_iface/mixed/elp2.json | 42 ++++++++++++++++++++++ .../vpp_lite_config/rtr_two_iface/4o4/rtr.config | 15 ++++++++ .../vpp_lite_config/rtr_two_iface/4o4/vpp1.config | 14 ++++++++ .../vpp_lite_config/rtr_two_iface/4o4/vpp2.config | 14 ++++++++ .../vpp_lite_config/rtr_two_iface/4o6/rtr.config | 15 ++++++++ .../vpp_lite_config/rtr_two_iface/4o6/vpp1.config | 12 +++++++ .../vpp_lite_config/rtr_two_iface/4o6/vpp2.config | 12 +++++++ .../vpp_lite_config/rtr_two_iface/mixed/rtr.config | 15 ++++++++ .../rtr_two_iface/mixed/vpp1.config | 12 +++++++ .../rtr_two_iface/mixed/vpp2.config | 12 +++++++ 15 files changed, 373 insertions(+) create mode 100644 tests/data_plane/configs/odl/rtr_two_iface/4o4/elp1.json create mode 100644 tests/data_plane/configs/odl/rtr_two_iface/4o4/elp2.json create mode 100644 tests/data_plane/configs/odl/rtr_two_iface/4o6/elp1.json create mode 100644 tests/data_plane/configs/odl/rtr_two_iface/4o6/elp2.json create mode 100644 tests/data_plane/configs/odl/rtr_two_iface/mixed/elp1.json create mode 100644 tests/data_plane/configs/odl/rtr_two_iface/mixed/elp2.json create mode 100644 tests/data_plane/configs/vpp_lite_config/rtr_two_iface/4o4/rtr.config create mode 100644 tests/data_plane/configs/vpp_lite_config/rtr_two_iface/4o4/vpp1.config create mode 100644 tests/data_plane/configs/vpp_lite_config/rtr_two_iface/4o4/vpp2.config create mode 100644 tests/data_plane/configs/vpp_lite_config/rtr_two_iface/4o6/rtr.config create mode 100644 tests/data_plane/configs/vpp_lite_config/rtr_two_iface/4o6/vpp1.config create mode 100644 tests/data_plane/configs/vpp_lite_config/rtr_two_iface/4o6/vpp2.config create mode 100644 tests/data_plane/configs/vpp_lite_config/rtr_two_iface/mixed/rtr.config create mode 100644 tests/data_plane/configs/vpp_lite_config/rtr_two_iface/mixed/vpp1.config create mode 100644 tests/data_plane/configs/vpp_lite_config/rtr_two_iface/mixed/vpp2.config (limited to 'tests/data_plane/configs') diff --git a/tests/data_plane/configs/odl/rtr_two_iface/4o4/elp1.json b/tests/data_plane/configs/odl/rtr_two_iface/4o4/elp1.json new file mode 100644 index 0000000..6dff66f --- /dev/null +++ b/tests/data_plane/configs/odl/rtr_two_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": true, + "rloc": { + "address-type": "ietf-lisp-address-types:explicit-locator-path-lcaf", + "explicit-locator-path": { + "hop": [ + { + "hop-id": "Hop 1", + "address": "6.0.5.2", + "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_two_iface/4o4/elp2.json b/tests/data_plane/configs/odl/rtr_two_iface/4o4/elp2.json new file mode 100644 index 0000000..64c0b78 --- /dev/null +++ b/tests/data_plane/configs/odl/rtr_two_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.2", + "lrs-bits": "lookup rloc-probe strict" + }, + { + "hop-id": "Hop 2", + "address": "6.0.5.1", + "lrs-bits": "lookup strict" + } + ] + } + } + } + ] + } + } +} diff --git a/tests/data_plane/configs/odl/rtr_two_iface/4o6/elp1.json b/tests/data_plane/configs/odl/rtr_two_iface/4o6/elp1.json new file mode 100644 index 0000000..5d8d581 --- /dev/null +++ b/tests/data_plane/configs/odl/rtr_two_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": true, + "rloc": { + "address-type": "ietf-lisp-address-types:explicit-locator-path-lcaf", + "explicit-locator-path": { + "hop": [ + { + "hop-id": "Hop 1", + "address": "6:0:5::2", + "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_two_iface/4o6/elp2.json b/tests/data_plane/configs/odl/rtr_two_iface/4o6/elp2.json new file mode 100644 index 0000000..e4336e4 --- /dev/null +++ b/tests/data_plane/configs/odl/rtr_two_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::2", + "lrs-bits": "lookup rloc-probe strict" + }, + { + "hop-id": "Hop 2", + "address": "6:0:5::1", + "lrs-bits": "lookup strict" + } + ] + } + } + } + ] + } + } +} diff --git a/tests/data_plane/configs/odl/rtr_two_iface/mixed/elp1.json b/tests/data_plane/configs/odl/rtr_two_iface/mixed/elp1.json new file mode 100644 index 0000000..7696f59 --- /dev/null +++ b/tests/data_plane/configs/odl/rtr_two_iface/mixed/elp1.json @@ -0,0 +1,42 @@ +{ + "input": { + "mapping-record": { + "recordTtl": 1440, + "action": "NoAction", + "authoritative": true, + "eid": { + "address-type": "ietf-lisp-address-types:ipv6-prefix-afi", + "ipv6-prefix": "6:0:2::0/64" + }, + "LocatorRecord": [ + { + "locator-id": "ELP", + "priority": 1, + "weight": 1, + "multicastPriority": 255, + "multicastWeight": 0, + "localLocator": true, + "rlocProbed": false, + "routed": true, + "rloc": { + "address-type": "ietf-lisp-address-types:explicit-locator-path-lcaf", + "explicit-locator-path": { + "hop": [ + { + "hop-id": "Hop 1", + "address": "6:0:5::2", + "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_two_iface/mixed/elp2.json b/tests/data_plane/configs/odl/rtr_two_iface/mixed/elp2.json new file mode 100644 index 0000000..a043715 --- /dev/null +++ b/tests/data_plane/configs/odl/rtr_two_iface/mixed/elp2.json @@ -0,0 +1,42 @@ +{ + "input": { + "mapping-record": { + "recordTtl": 1440, + "action": "NoAction", + "authoritative": true, + "eid": { + "address-type": "ietf-lisp-address-types:ipv6-prefix-afi", + "ipv6-prefix": "6:0:4::0/64" + }, + "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.2", + "lrs-bits": "lookup rloc-probe strict" + }, + { + "hop-id": "Hop 2", + "address": "6:0:5::1", + "lrs-bits": "lookup strict" + } + ] + } + } + } + ] + } + } +} diff --git a/tests/data_plane/configs/vpp_lite_config/rtr_two_iface/4o4/rtr.config b/tests/data_plane/configs/vpp_lite_config/rtr_two_iface/4o4/rtr.config new file mode 100644 index 0000000..480f3d5 --- /dev/null +++ b/tests/data_plane/configs/vpp_lite_config/rtr_two_iface/4o4/rtr.config @@ -0,0 +1,15 @@ +create host-interface name rtr_vpp1 +set int state host-rtr_vpp1 up +set int ip address host-rtr_vpp1 6.0.3.2/24 + +create host-interface name rtr_vpp2 +set int state host-rtr_vpp2 up +set int ip address host-rtr_vpp2 6.0.5.2/24 + +lisp enable + +lisp locator-set add ls1 iface host-rtr_vpp1 p 1 w 1 iface host-rtr_vpp2 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_two_iface/4o4/vpp1.config b/tests/data_plane/configs/vpp_lite_config/rtr_two_iface/4o4/vpp1.config new file mode 100644 index 0000000..6608b9b --- /dev/null +++ b/tests/data_plane/configs/vpp_lite_config/rtr_two_iface/4o4/vpp1.config @@ -0,0 +1,14 @@ +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 vpp1_rtr +set int state host-vpp1_rtr up +set int ip address host-vpp1_rtr 6.0.3.1/24 + +lisp enable + +lisp map-resolver add 6.0.3.100 +lisp locator-set add ls1 iface host-vpp1_rtr p 1 w 1 +lisp eid-table add eid 6.0.2.0/24 locator-set ls1 + +comment {ip route add 6.0.5.0/24 via 6.0.3.1} diff --git a/tests/data_plane/configs/vpp_lite_config/rtr_two_iface/4o4/vpp2.config b/tests/data_plane/configs/vpp_lite_config/rtr_two_iface/4o4/vpp2.config new file mode 100644 index 0000000..304f011 --- /dev/null +++ b/tests/data_plane/configs/vpp_lite_config/rtr_two_iface/4o4/vpp2.config @@ -0,0 +1,14 @@ +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 vpp2_rtr +set int state host-vpp2_rtr up +set int ip address host-vpp2_rtr 6.0.5.1/24 + +lisp enable + +lisp map-resolver add 6.0.5.100 +lisp locator-set add ls1 iface host-vpp2_rtr p 1 w 1 +lisp eid-table add eid 6.0.4.0/24 locator-set ls1 + +comment {ip route add 6.0.3.0/24 via 6.0.5.1} diff --git a/tests/data_plane/configs/vpp_lite_config/rtr_two_iface/4o6/rtr.config b/tests/data_plane/configs/vpp_lite_config/rtr_two_iface/4o6/rtr.config new file mode 100644 index 0000000..46a9037 --- /dev/null +++ b/tests/data_plane/configs/vpp_lite_config/rtr_two_iface/4o6/rtr.config @@ -0,0 +1,15 @@ +create host-interface name rtr_vpp1 +set int state host-rtr_vpp1 up +set int ip address host-rtr_vpp1 6:0:3::2/64 + +create host-interface name rtr_vpp2 +set int state host-rtr_vpp2 up +set int ip address host-rtr_vpp2 6:0:5::2/64 + +lisp enable + +lisp locator-set add ls1 iface host-rtr_vpp1 p 1 w 1 iface host-rtr_vpp2 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_two_iface/4o6/vpp1.config b/tests/data_plane/configs/vpp_lite_config/rtr_two_iface/4o6/vpp1.config new file mode 100644 index 0000000..b2c523b --- /dev/null +++ b/tests/data_plane/configs/vpp_lite_config/rtr_two_iface/4o6/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 vpp1_rtr +set int state host-vpp1_rtr up +set int ip address host-vpp1_rtr 6:0:3::1/64 + +lisp enable + +lisp map-resolver add 6:0:3::100 +lisp locator-set add ls1 iface host-vpp1_rtr 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_two_iface/4o6/vpp2.config b/tests/data_plane/configs/vpp_lite_config/rtr_two_iface/4o6/vpp2.config new file mode 100644 index 0000000..27d58b5 --- /dev/null +++ b/tests/data_plane/configs/vpp_lite_config/rtr_two_iface/4o6/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 vpp2_rtr +set int state host-vpp2_rtr up +set int ip address host-vpp2_rtr 6:0:5::1/64 + +lisp enable + +lisp map-resolver add 6:0:5::100 +lisp locator-set add ls1 iface host-vpp2_rtr 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_two_iface/mixed/rtr.config b/tests/data_plane/configs/vpp_lite_config/rtr_two_iface/mixed/rtr.config new file mode 100644 index 0000000..02953d0 --- /dev/null +++ b/tests/data_plane/configs/vpp_lite_config/rtr_two_iface/mixed/rtr.config @@ -0,0 +1,15 @@ +create host-interface name rtr_vpp1 +set int state host-rtr_vpp1 up +set int ip address host-rtr_vpp1 6.0.3.2/24 + +create host-interface name rtr_vpp2 +set int state host-rtr_vpp2 up +set int ip address host-rtr_vpp2 6:0:5::2/64 + +lisp enable + +lisp locator-set add ls1 iface host-rtr_vpp1 p 1 w 1 iface host-rtr_vpp2 p 1 w 1 +lisp pitr ls ls1 +comment { lisp pitr disable } +lisp remote-mapping deid 6:0:0::0/32 action send-map-request +lisp map-resolver add 6.0.3.100 diff --git a/tests/data_plane/configs/vpp_lite_config/rtr_two_iface/mixed/vpp1.config b/tests/data_plane/configs/vpp_lite_config/rtr_two_iface/mixed/vpp1.config new file mode 100644 index 0000000..72e460b --- /dev/null +++ b/tests/data_plane/configs/vpp_lite_config/rtr_two_iface/mixed/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/64 +create host-interface name vpp1_rtr +set int state host-vpp1_rtr up +set int ip address host-vpp1_rtr 6.0.3.1/24 + +lisp enable + +lisp map-resolver add 6.0.3.100 +lisp locator-set add ls1 iface host-vpp1_rtr p 1 w 1 +lisp eid-table add eid 6:0:2::0/64 locator-set ls1 diff --git a/tests/data_plane/configs/vpp_lite_config/rtr_two_iface/mixed/vpp2.config b/tests/data_plane/configs/vpp_lite_config/rtr_two_iface/mixed/vpp2.config new file mode 100644 index 0000000..eddefba --- /dev/null +++ b/tests/data_plane/configs/vpp_lite_config/rtr_two_iface/mixed/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/64 +create host-interface name vpp2_rtr +set int state host-vpp2_rtr up +set int ip address host-vpp2_rtr 6:0:5::1/64 + +lisp enable + +lisp map-resolver add 6:0:5::100 +lisp locator-set add ls1 iface host-vpp2_rtr p 1 w 1 +lisp eid-table add eid 6:0:4::0/64 locator-set ls1 -- cgit 1.2.3-korg