From 72493bf45a8823dbb2bc8e0745ebb7106a7ae01f Mon Sep 17 00:00:00 2001 From: Marek Gradzki Date: Wed, 9 Aug 2017 12:30:05 +0200 Subject: HC2VPP-105: add support for NAT64 BIB entries configuration No read support due to issues with nat64_bib_dump Change-Id: I851c4fc5084d6e29d622df2855cf8d47ba147015 Signed-off-by: Marek Gradzki --- .../resources/nat64/static-mapping-address-update.json | 17 +++++++++++++++++ .../nat64/static-mapping-unsupported-proto.json | 12 ++++++++++++ .../src/test/resources/nat64/static-mapping.json | 12 ++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 nat/nat2vpp/src/test/resources/nat64/static-mapping-address-update.json create mode 100644 nat/nat2vpp/src/test/resources/nat64/static-mapping-unsupported-proto.json create mode 100644 nat/nat2vpp/src/test/resources/nat64/static-mapping.json (limited to 'nat/nat2vpp/src/test/resources/nat64') diff --git a/nat/nat2vpp/src/test/resources/nat64/static-mapping-address-update.json b/nat/nat2vpp/src/test/resources/nat64/static-mapping-address-update.json new file mode 100644 index 000000000..73f2c0e55 --- /dev/null +++ b/nat/nat2vpp/src/test/resources/nat64/static-mapping-address-update.json @@ -0,0 +1,17 @@ +{ + "mapping-table" : { + "mapping-entry": { + "index": 58, + "type": "static", + "transport-protocol": 58, + "internal-src-address": "2001:db8:85a3::8a2e:370:7334", + "external-src-address": "10.1.1.4", + "internal-src-port" : { + "single-port-number" : 1234 + }, + "external-src-port" : { + "single-port-number" : 5678 + } + } + } +} \ No newline at end of file diff --git a/nat/nat2vpp/src/test/resources/nat64/static-mapping-unsupported-proto.json b/nat/nat2vpp/src/test/resources/nat64/static-mapping-unsupported-proto.json new file mode 100644 index 000000000..bbe8a20d3 --- /dev/null +++ b/nat/nat2vpp/src/test/resources/nat64/static-mapping-unsupported-proto.json @@ -0,0 +1,12 @@ +{ + "mapping-table" : { + "mapping-entry": { + "index": 58, + "type": "static", + "transport-protocol": 123, + "internal-src-address": "2001:db8:85a3::8a2e:370:7333", + "external-src-address": "10.1.1.3" + } + } +} + diff --git a/nat/nat2vpp/src/test/resources/nat64/static-mapping.json b/nat/nat2vpp/src/test/resources/nat64/static-mapping.json new file mode 100644 index 000000000..d3a1c40c4 --- /dev/null +++ b/nat/nat2vpp/src/test/resources/nat64/static-mapping.json @@ -0,0 +1,12 @@ +{ + "mapping-table" : { + "mapping-entry": { + "index": 58, + "type": "static", + "transport-protocol": 58, + "internal-src-address": "2001:db8:85a3::8a2e:370:7333", + "external-src-address": "10.1.1.3" + } + } +} + -- cgit 1.2.3-korg