From 6ecb3add2c107f34cfa686f840f49c039cb5c6a7 Mon Sep 17 00:00:00 2001 From: Filip Tehlar Date: Tue, 21 Jun 2016 12:27:19 +0200 Subject: Add RTR tests (6over4 and 6over6) Change-Id: I4b2b05193209a3054f0a1177be9412e79de73349 Signed-off-by: Filip Tehlar --- .../configs/odl/rtr_single_iface/6o4/elp1.json | 42 ++++++++++++++++++++++ .../configs/odl/rtr_single_iface/6o4/elp2.json | 42 ++++++++++++++++++++++ .../configs/odl/rtr_single_iface/6o6/elp1.json | 42 ++++++++++++++++++++++ .../configs/odl/rtr_single_iface/6o6/elp2.json | 42 ++++++++++++++++++++++ 4 files changed, 168 insertions(+) create mode 100644 tests/data_plane/configs/odl/rtr_single_iface/6o4/elp1.json create mode 100644 tests/data_plane/configs/odl/rtr_single_iface/6o4/elp2.json create mode 100644 tests/data_plane/configs/odl/rtr_single_iface/6o6/elp1.json create mode 100644 tests/data_plane/configs/odl/rtr_single_iface/6o6/elp2.json (limited to 'tests/data_plane/configs/odl/rtr_single_iface') diff --git a/tests/data_plane/configs/odl/rtr_single_iface/6o4/elp1.json b/tests/data_plane/configs/odl/rtr_single_iface/6o4/elp1.json new file mode 100644 index 0000000..3928aa7 --- /dev/null +++ b/tests/data_plane/configs/odl/rtr_single_iface/6o4/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": 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/6o4/elp2.json b/tests/data_plane/configs/odl/rtr_single_iface/6o4/elp2.json new file mode 100644 index 0000000..0a0b213 --- /dev/null +++ b/tests/data_plane/configs/odl/rtr_single_iface/6o4/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.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/6o6/elp1.json b/tests/data_plane/configs/odl/rtr_single_iface/6o6/elp1.json new file mode 100644 index 0000000..4c10f0e --- /dev/null +++ b/tests/data_plane/configs/odl/rtr_single_iface/6o6/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": 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/6o6/elp2.json b/tests/data_plane/configs/odl/rtr_single_iface/6o6/elp2.json new file mode 100644 index 0000000..dc83b42 --- /dev/null +++ b/tests/data_plane/configs/odl/rtr_single_iface/6o6/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::3", + "lrs-bits": "lookup rloc-probe strict" + }, + { + "hop-id": "Hop 2", + "address": "6:0:3::2", + "lrs-bits": "lookup strict" + } + ] + } + } + } + ] + } + } +} -- cgit 1.2.3-korg