summaryrefslogtreecommitdiffstats
path: root/nat/nat2vpp/src/test/resources
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2017-08-09 12:30:05 +0200
committerJan Srnicek <jsrnicek@cisco.com>2017-08-14 07:59:38 +0000
commit72493bf45a8823dbb2bc8e0745ebb7106a7ae01f (patch)
tree426546e255f8f0530ed374f5a37fb9a636aeb5f2 /nat/nat2vpp/src/test/resources
parentcb46f2dd3509a39fe762318a1ee32caaf95978b4 (diff)
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 <mgradzki@cisco.com>
Diffstat (limited to 'nat/nat2vpp/src/test/resources')
-rw-r--r--nat/nat2vpp/src/test/resources/nat44/external-ip-pool.json (renamed from nat/nat2vpp/src/test/resources/nat/external-ip-pool.json)0
-rw-r--r--nat/nat2vpp/src/test/resources/nat44/static-mapping-address-update.json (renamed from nat/nat2vpp/src/test/resources/nat/static-mapping-address-update.json)0
-rw-r--r--nat/nat2vpp/src/test/resources/nat44/static-mapping-unsupported-proto.json (renamed from nat/nat2vpp/src/test/resources/nat/static-mapping-unsupported-proto.json)0
-rw-r--r--nat/nat2vpp/src/test/resources/nat44/static-mapping.json (renamed from nat/nat2vpp/src/test/resources/nat/static-mapping.json)0
-rw-r--r--nat/nat2vpp/src/test/resources/nat64/static-mapping-address-update.json17
-rw-r--r--nat/nat2vpp/src/test/resources/nat64/static-mapping-unsupported-proto.json12
-rw-r--r--nat/nat2vpp/src/test/resources/nat64/static-mapping.json12
7 files changed, 41 insertions, 0 deletions
diff --git a/nat/nat2vpp/src/test/resources/nat/external-ip-pool.json b/nat/nat2vpp/src/test/resources/nat44/external-ip-pool.json
index 37e8e907f..37e8e907f 100644
--- a/nat/nat2vpp/src/test/resources/nat/external-ip-pool.json
+++ b/nat/nat2vpp/src/test/resources/nat44/external-ip-pool.json
diff --git a/nat/nat2vpp/src/test/resources/nat/static-mapping-address-update.json b/nat/nat2vpp/src/test/resources/nat44/static-mapping-address-update.json
index 224a62a6b..224a62a6b 100644
--- a/nat/nat2vpp/src/test/resources/nat/static-mapping-address-update.json
+++ b/nat/nat2vpp/src/test/resources/nat44/static-mapping-address-update.json
diff --git a/nat/nat2vpp/src/test/resources/nat/static-mapping-unsupported-proto.json b/nat/nat2vpp/src/test/resources/nat44/static-mapping-unsupported-proto.json
index 455465d20..455465d20 100644
--- a/nat/nat2vpp/src/test/resources/nat/static-mapping-unsupported-proto.json
+++ b/nat/nat2vpp/src/test/resources/nat44/static-mapping-unsupported-proto.json
diff --git a/nat/nat2vpp/src/test/resources/nat/static-mapping.json b/nat/nat2vpp/src/test/resources/nat44/static-mapping.json
index b1561a46b..b1561a46b 100644
--- a/nat/nat2vpp/src/test/resources/nat/static-mapping.json
+++ b/nat/nat2vpp/src/test/resources/nat44/static-mapping.json
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"
+ }
+ }
+}
+