From 8719d3152d10974926175f63975d1b0290fd7237 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Fri, 29 Jul 2016 23:24:17 +0200 Subject: Basic l2 over ip4 tests Change-Id: I8bd9253bac3759018ca752574cae575b129df3e6 Signed-off-by: Florin Coras --- tests/data_plane/configs/odl/basic/l2o4/vpp1.json | 30 ++++++++++++++++++++++ tests/data_plane/configs/odl/basic/l2o4/vpp2.json | 30 ++++++++++++++++++++++ .../configs/vpp_lite_config/basic/l2o4/vpp1.config | 16 ++++++++++++ .../configs/vpp_lite_config/basic/l2o4/vpp2.config | 16 ++++++++++++ 4 files changed, 92 insertions(+) create mode 100644 tests/data_plane/configs/odl/basic/l2o4/vpp1.json create mode 100644 tests/data_plane/configs/odl/basic/l2o4/vpp2.json create mode 100644 tests/data_plane/configs/vpp_lite_config/basic/l2o4/vpp1.config create mode 100644 tests/data_plane/configs/vpp_lite_config/basic/l2o4/vpp2.config (limited to 'tests/data_plane/configs') diff --git a/tests/data_plane/configs/odl/basic/l2o4/vpp1.json b/tests/data_plane/configs/odl/basic/l2o4/vpp1.json new file mode 100644 index 0000000..4869c49 --- /dev/null +++ b/tests/data_plane/configs/odl/basic/l2o4/vpp1.json @@ -0,0 +1,30 @@ +{ + "input": { + "mapping-record": { + "recordTtl": 1440, + "action": "NoAction", + "authoritative": true, + "eid": { + "virtual-network-id": 10, + "address-type": "ietf-lisp-address-types:mac-afi", + "mac": "08:11:11:11:11:11" + }, + "LocatorRecord": [ + { + "locator-id": "ISP1", + "priority": 1, + "weight": 1, + "multicastPriority": 255, + "multicastWeight": 0, + "localLocator": true, + "rlocProbed": false, + "routed": false, + "rloc": { + "address-type": "ietf-lisp-address-types:ipv4-afi", + "ipv4": "6.0.3.1" + } + } + ] + } + } +} diff --git a/tests/data_plane/configs/odl/basic/l2o4/vpp2.json b/tests/data_plane/configs/odl/basic/l2o4/vpp2.json new file mode 100644 index 0000000..7c49929 --- /dev/null +++ b/tests/data_plane/configs/odl/basic/l2o4/vpp2.json @@ -0,0 +1,30 @@ +{ + "input": { + "mapping-record": { + "recordTtl": 1440, + "action": "NoAction", + "authoritative": true, + "eid": { + "virtual-network-id": 10, + "address-type": "ietf-lisp-address-types:mac-afi", + "mac": "08:22:22:22:22:22" + }, + "LocatorRecord": [ + { + "locator-id": "ISP1", + "priority": 1, + "weight": 1, + "multicastPriority": 255, + "multicastWeight": 0, + "localLocator": true, + "rlocProbed": false, + "routed": false, + "rloc": { + "address-type": "ietf-lisp-address-types:ipv4-afi", + "ipv4": "6.0.3.2" + } + } + ] + } + } +} diff --git a/tests/data_plane/configs/vpp_lite_config/basic/l2o4/vpp1.config b/tests/data_plane/configs/vpp_lite_config/basic/l2o4/vpp1.config new file mode 100644 index 0000000..f58c606 --- /dev/null +++ b/tests/data_plane/configs/vpp_lite_config/basic/l2o4/vpp1.config @@ -0,0 +1,16 @@ +create host-interface name vpp1 +set int state host-vpp1 up +set int ip address host-vpp1 6.0.1.1/24 + +create host-interface name intervpp1 +set int state host-intervpp1 up +set int ip address host-intervpp1 6.0.3.1/24 + +lisp enable + +lisp locator-set add ls1 iface host-intervpp1 p 1 w 1 +lisp map-resolver add 6.0.3.100 + +lisp eid-table map vni 10 bd 10 +set interface l2 bridge host-vpp1 10 +lisp eid-table add vni 10 eid 08:11:11:11:11:11 locator-set ls1 diff --git a/tests/data_plane/configs/vpp_lite_config/basic/l2o4/vpp2.config b/tests/data_plane/configs/vpp_lite_config/basic/l2o4/vpp2.config new file mode 100644 index 0000000..97dc81e --- /dev/null +++ b/tests/data_plane/configs/vpp_lite_config/basic/l2o4/vpp2.config @@ -0,0 +1,16 @@ +create host-interface name vpp2 +set int state host-vpp2 up +set int ip address host-vpp2 6.0.1.2/24 + +create host-interface name intervpp2 +set int state host-intervpp2 up +set int ip address host-intervpp2 6.0.3.2/24 + +lisp enable + +lisp locator-set add ls1 iface host-intervpp2 p 1 w 1 +lisp map-resolver add 6.0.3.100 + +lisp eid-table map vni 10 bd 10 +set interface l2 bridge host-vpp2 10 +lisp eid-table add vni 10 eid 08:22:22:22:22:22 locator-set ls1 -- cgit 1.2.3-korg