diff options
author | Filip Tehlar <ftehlar@cisco.com> | 2017-06-15 13:36:26 +0200 |
---|---|---|
committer | Filip Tehlar <ftehlar@cisco.com> | 2017-06-15 15:40:57 +0200 |
commit | a6ba15e2cc56e0f91e0d2d9f0b66b62073aac777 (patch) | |
tree | 19512a1f4f54b8d061d806b1d0419ddb04dd79e0 /tests/data_plane/configs | |
parent | f20e6999369a2cd951247d4ef1b7a417b6a35566 (diff) |
Add LISP GPE NSH test
Change-Id: I4d8b9c8c0bd560a9ba2a8db7ddfacd89b51b433f
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'tests/data_plane/configs')
-rw-r--r-- | tests/data_plane/configs/odl/nsh/vpp1.json | 32 | ||||
-rw-r--r-- | tests/data_plane/configs/odl/nsh/vpp2.json | 32 | ||||
-rw-r--r-- | tests/data_plane/configs/vpp_lite_config/nsh/vpp1.config | 7 | ||||
-rw-r--r-- | tests/data_plane/configs/vpp_lite_config/nsh/vpp2.config | 7 |
4 files changed, 78 insertions, 0 deletions
diff --git a/tests/data_plane/configs/odl/nsh/vpp1.json b/tests/data_plane/configs/odl/nsh/vpp1.json new file mode 100644 index 0000000..b7725e2 --- /dev/null +++ b/tests/data_plane/configs/odl/nsh/vpp1.json @@ -0,0 +1,32 @@ +{ + "input": { + "mapping-record": { + "recordTtl": 1440, + "action": "NoAction", + "authoritative": true, + "eid": { + "address-type": "ietf-lisp-address-types:service-path-lcaf", + "service-path": { + "service-path-id": 10, + "service-index": 200 + } + }, + "LocatorRecord": [ + { + "locator-id": "ISP1", + "priority": 1, + "weight": 1, + "multicastPriority": 255, + "multicastWeight": 0, + "localLocator": true, + "rlocProbed": false, + "routed": true, + "rloc": { + "address-type": "ietf-lisp-address-types:ipv4-afi", + "ipv4": "6.0.3.2" + } + } + ] + } + } +} diff --git a/tests/data_plane/configs/odl/nsh/vpp2.json b/tests/data_plane/configs/odl/nsh/vpp2.json new file mode 100644 index 0000000..b26ce62 --- /dev/null +++ b/tests/data_plane/configs/odl/nsh/vpp2.json @@ -0,0 +1,32 @@ +{ + "input": { + "mapping-record": { + "recordTtl": 1440, + "action": "NoAction", + "authoritative": true, + "eid": { + "address-type": "ietf-lisp-address-types:service-path-lcaf", + "service-path": { + "service-path-id": 11, + "service-index": 4 + } + }, + "LocatorRecord": [ + { + "locator-id": "ISP1", + "priority": 1, + "weight": 1, + "multicastPriority": 255, + "multicastWeight": 0, + "localLocator": true, + "rlocProbed": false, + "routed": true, + "rloc": { + "address-type": "ietf-lisp-address-types:ipv4-afi", + "ipv4": "6.0.3.2" + } + } + ] + } + } +} diff --git a/tests/data_plane/configs/vpp_lite_config/nsh/vpp1.config b/tests/data_plane/configs/vpp_lite_config/nsh/vpp1.config new file mode 100644 index 0000000..808d632 --- /dev/null +++ b/tests/data_plane/configs/vpp_lite_config/nsh/vpp1.config @@ -0,0 +1,7 @@ +create_host_iface vpp1 6.0.1.1/24 +create_host_iface intervpp1 6.0.3.1/24 + +lisp_state enable +lisp_locator_set_with_locator ls1 host-intervpp1 1 1 +lisp_nsh_set_ls ls ls1 +lisp_map_resolver 6.0.3.100 diff --git a/tests/data_plane/configs/vpp_lite_config/nsh/vpp2.config b/tests/data_plane/configs/vpp_lite_config/nsh/vpp2.config new file mode 100644 index 0000000..c17327a --- /dev/null +++ b/tests/data_plane/configs/vpp_lite_config/nsh/vpp2.config @@ -0,0 +1,7 @@ +create_host_iface vpp2 6.0.2.1/24 +create_host_iface intervpp2 6.0.3.2/24 + +lisp_state enable +lisp_locator_set_with_locator ls1 host-intervpp2 1 1 +lisp_nsh_set_ls ls ls1 +lisp_map_resolver 6.0.3.100 |