diff options
author | Filip Tehlar <ftehlar@cisco.com> | 2016-05-26 15:57:49 +0200 |
---|---|---|
committer | Filip Tehlar <ftehlar@cisco.com> | 2016-05-27 09:00:22 +0200 |
commit | 4bf6318c1de924c63e22479cc38549ce3af3e420 (patch) | |
tree | bca01ef7f954c2f6ef5c33d215a89f47e5a5588d /tests/data_plane/configs/odl | |
parent | 05767cf174f01c5ffdc317112dfabb64bd677a6c (diff) |
Add LISP RTR tests
This change adds tests for IPv4overIPv4 and IPv4overIPv6 scenarios.
Change-Id: I68e0e94538914cf0b03625ee1be3b92684184c78
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'tests/data_plane/configs/odl')
4 files changed, 168 insertions, 0 deletions
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" + } + ] + } + } + } + ] + } + } +} |