diff options
author | 2017-05-24 08:45:19 +0200 | |
---|---|---|
committer | 2017-05-24 08:45:19 +0200 | |
commit | 7ca39aa6d228dc552097857afc697ddf52bd3ad3 (patch) | |
tree | e1af2f7bd22ffc83a2958168f2b313dd765dda47 /lisp/lisp2vpp/src/test/resources/gpe | |
parent | b5d9c75265a5779ed7404b426f3f91a6b1e07e49 (diff) |
HC2VPP-147 - Gpe entry implementation
Change-Id: Ie7887c8e8f10678410ad677c425bfed1690bf440
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
Diffstat (limited to 'lisp/lisp2vpp/src/test/resources/gpe')
5 files changed, 143 insertions, 0 deletions
diff --git a/lisp/lisp2vpp/src/test/resources/gpe/gpe-fwd-entry-full.json b/lisp/lisp2vpp/src/test/resources/gpe/gpe-fwd-entry-full.json new file mode 100644 index 000000000..8bc5cc41e --- /dev/null +++ b/lisp/lisp2vpp/src/test/resources/gpe/gpe-fwd-entry-full.json @@ -0,0 +1,38 @@ +{ + "gpe-entry-table": { + "gpe-entry": { + "id": "gpe-fwd-entry-1", + "dp-table": 10, + "vni": 12, + "local-eid": { + "address-type": "ietf-lisp-address-types:ipv4-prefix-afi", + "virtual-network-id": 12, + "ipv4-prefix": "192.168.2.0/24" + }, + "remote-eid": { + "address-type": "ietf-lisp-address-types:ipv4-prefix-afi", + "virtual-network-id": 12, + "ipv4-prefix": "192.168.3.0/16" + }, + "locator-pairs": [ + { + "id": "gpe-fwd-entry-pair-1", + "locator-pair": { + "local-locator": "192.168.4.1", + "remote-locator": "192.168.4.2", + "weight": 3 + } + }, + { + "id": "gpe-fwd-entry-pair-2", + "locator-pair": { + "local-locator": "192.168.5.1", + "remote-locator": "192.168.5.2", + "weight": 2 + } + } + ], + "action": "natively-forward" + } + } +}
\ No newline at end of file diff --git a/lisp/lisp2vpp/src/test/resources/gpe/gpe-fwd-entry-without-action.json b/lisp/lisp2vpp/src/test/resources/gpe/gpe-fwd-entry-without-action.json new file mode 100644 index 000000000..b004d5a9d --- /dev/null +++ b/lisp/lisp2vpp/src/test/resources/gpe/gpe-fwd-entry-without-action.json @@ -0,0 +1,19 @@ +{ + "gpe-entry-table": { + "gpe-entry": { + "id": "gpe-fwd-entry-1", + "dp-table": 10, + "vni": 12, + "local-eid": { + "address-type": "ietf-lisp-address-types:ipv4-prefix-afi", + "virtual-network-id": 12, + "ipv4-prefix": "192.168.2.0/24" + }, + "remote-eid": { + "address-type": "ietf-lisp-address-types:ipv4-prefix-afi", + "virtual-network-id": 12, + "ipv4-prefix": "192.168.3.0/16" + } + } + } +}
\ No newline at end of file diff --git a/lisp/lisp2vpp/src/test/resources/gpe/gpe-fwd-entry-without-locators.json b/lisp/lisp2vpp/src/test/resources/gpe/gpe-fwd-entry-without-locators.json new file mode 100644 index 000000000..2015b540f --- /dev/null +++ b/lisp/lisp2vpp/src/test/resources/gpe/gpe-fwd-entry-without-locators.json @@ -0,0 +1,20 @@ +{ + "gpe-entry-table": { + "gpe-entry": { + "id": "gpe-fwd-entry-1", + "dp-table": 10, + "vni": 12, + "local-eid": { + "address-type": "ietf-lisp-address-types:ipv4-prefix-afi", + "virtual-network-id": 12, + "ipv4-prefix": "192.168.2.0/24" + }, + "remote-eid": { + "address-type": "ietf-lisp-address-types:ipv4-prefix-afi", + "virtual-network-id": 12, + "ipv4-prefix": "192.168.3.0/16" + }, + "action": "natively-forward" + } + } +}
\ No newline at end of file diff --git a/lisp/lisp2vpp/src/test/resources/gpe/invalid/invalid-gpe-fwd-entry-no-local-eid.json b/lisp/lisp2vpp/src/test/resources/gpe/invalid/invalid-gpe-fwd-entry-no-local-eid.json new file mode 100644 index 000000000..25c12d615 --- /dev/null +++ b/lisp/lisp2vpp/src/test/resources/gpe/invalid/invalid-gpe-fwd-entry-no-local-eid.json @@ -0,0 +1,33 @@ +{ + "gpe-entry-table": { + "gpe-entry": { + "id": "gpe-fwd-entry-1", + "dp-table": 10, + "vni": 12, + "remote-eid": { + "address-type": "ietf-lisp-address-types:ipv4-prefix-afi", + "virtual-network-id": 12, + "ipv4-prefix": "192.168.3.0/16" + }, + "locator-pairs": [ + { + "id": "gpe-fwd-entry-pair-1", + "locator-pair": { + "local-locator": "192.168.4.1", + "remote-locator": "192.168.4.2", + "weight": 3 + } + }, + { + "id": "gpe-fwd-entry-pair-2", + "locator-pair": { + "local-locator": "192.168.5.1", + "remote-locator": "192.168.5.2", + "weight": 2 + } + } + ], + "action": "natively-forward" + } + } +}
\ No newline at end of file diff --git a/lisp/lisp2vpp/src/test/resources/gpe/invalid/invalid-gpe-fwd-entry-no-remote-eid.json b/lisp/lisp2vpp/src/test/resources/gpe/invalid/invalid-gpe-fwd-entry-no-remote-eid.json new file mode 100644 index 000000000..e6d5cc7e5 --- /dev/null +++ b/lisp/lisp2vpp/src/test/resources/gpe/invalid/invalid-gpe-fwd-entry-no-remote-eid.json @@ -0,0 +1,33 @@ +{ + "gpe-entry-table": { + "gpe-entry": { + "id": "gpe-fwd-entry-1", + "dp-table": 10, + "vni": 12, + "local-eid": { + "address-type": "ietf-lisp-address-types:ipv4-prefix-afi", + "virtual-network-id": 12, + "ipv4-prefix": "192.168.2.0/24" + }, + "locator-pairs": [ + { + "id": "gpe-fwd-entry-pair-1", + "locator-pair": { + "local-locator": "192.168.4.1", + "remote-locator": "192.168.4.2", + "weight": 3 + } + }, + { + "id": "gpe-fwd-entry-pair-2", + "locator-pair": { + "local-locator": "192.168.5.1", + "remote-locator": "192.168.5.2", + "weight": 2 + } + } + ], + "action": "natively-forward" + } + } +}
\ No newline at end of file |