summaryrefslogtreecommitdiffstats
path: root/nat/nat2vpp/src/test/resources/nat64
diff options
context:
space:
mode:
Diffstat (limited to 'nat/nat2vpp/src/test/resources/nat64')
-rw-r--r--nat/nat2vpp/src/test/resources/nat64/external-ip-pool.json18
-rw-r--r--nat/nat2vpp/src/test/resources/nat64/static-mapping-address-update.json4
-rw-r--r--nat/nat2vpp/src/test/resources/nat64/static-mapping.json8
3 files changed, 19 insertions, 11 deletions
diff --git a/nat/nat2vpp/src/test/resources/nat64/external-ip-pool.json b/nat/nat2vpp/src/test/resources/nat64/external-ip-pool.json
index 3be25d299..724407b29 100644
--- a/nat/nat2vpp/src/test/resources/nat64/external-ip-pool.json
+++ b/nat/nat2vpp/src/test/resources/nat64/external-ip-pool.json
@@ -1,13 +1,15 @@
{
- "nat-instances" : {
- "nat-instance" : {
- "id" : 0,
- "external-ip-address-pool": {
- "pool-id": 22,
- "external-ip-pool": "192.168.1.1/24",
- "vpp-nat:pool-type": "nat64"
+ "instances": {
+ "instance": {
+ "id": 0,
+ "policy": {
+ "id": 0,
+ "external-ip-address-pool": {
+ "pool-id": 22,
+ "external-ip-pool": "192.168.1.1/24",
+ "vpp-nat:pool-type": "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
index 73f2c0e55..2e836ce91 100644
--- a/nat/nat2vpp/src/test/resources/nat64/static-mapping-address-update.json
+++ b/nat/nat2vpp/src/test/resources/nat64/static-mapping-address-update.json
@@ -7,10 +7,10 @@
"internal-src-address": "2001:db8:85a3::8a2e:370:7334",
"external-src-address": "10.1.1.4",
"internal-src-port" : {
- "single-port-number" : 1234
+ "start-port-number" : 1234
},
"external-src-port" : {
- "single-port-number" : 5678
+ "start-port-number" : 5678
}
}
}
diff --git a/nat/nat2vpp/src/test/resources/nat64/static-mapping.json b/nat/nat2vpp/src/test/resources/nat64/static-mapping.json
index d3a1c40c4..9fff452a2 100644
--- a/nat/nat2vpp/src/test/resources/nat64/static-mapping.json
+++ b/nat/nat2vpp/src/test/resources/nat64/static-mapping.json
@@ -5,7 +5,13 @@
"type": "static",
"transport-protocol": 58,
"internal-src-address": "2001:db8:85a3::8a2e:370:7333",
- "external-src-address": "10.1.1.3"
+ "internal-src-port": {
+ "start-port-number": 123
+ },
+ "external-src-address": "10.1.1.3",
+ "external-src-port": {
+ "start-port-number": 456
+ }
}
}
}