diff options
author | Marek Gradzki <mgradzki@cisco.com> | 2017-02-21 13:02:12 +0100 |
---|---|---|
committer | Jan Srnicek <jsrnicek@cisco.com> | 2017-02-23 06:25:49 +0000 |
commit | ec441a2601397ae0738152615860a8f011dd16c4 (patch) | |
tree | 664f54cac83bdc9621d57e9e25e3b630a04e2953 /nat/nat2vpp/src/test/resources | |
parent | 4c4bb0911d3556c834fd384aa1ef7c4d4ce69a33 (diff) |
HC2VPP-80: add support for protcol configuration
Change-Id: I7ad92c7ba78da3fd1b42605f4f0987df83d41d9f
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'nat/nat2vpp/src/test/resources')
-rw-r--r-- | nat/nat2vpp/src/test/resources/nat/static-mapping-unsupported-proto.json | 12 | ||||
-rw-r--r-- | nat/nat2vpp/src/test/resources/nat/static-mapping.json | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/nat/nat2vpp/src/test/resources/nat/static-mapping-unsupported-proto.json b/nat/nat2vpp/src/test/resources/nat/static-mapping-unsupported-proto.json new file mode 100644 index 000000000..455465d20 --- /dev/null +++ b/nat/nat2vpp/src/test/resources/nat/static-mapping-unsupported-proto.json @@ -0,0 +1,12 @@ +{ + "mapping-table" : { + "mapping-entry": { + "index": 22, + "type": "static", + "transport-protocol": 123, + "internal-src-address": "192.168.1.87", + "external-src-address": "45.1.5.7" + } + } +} + diff --git a/nat/nat2vpp/src/test/resources/nat/static-mapping.json b/nat/nat2vpp/src/test/resources/nat/static-mapping.json index 293e5be2b..b1561a46b 100644 --- a/nat/nat2vpp/src/test/resources/nat/static-mapping.json +++ b/nat/nat2vpp/src/test/resources/nat/static-mapping.json @@ -3,6 +3,7 @@ "mapping-entry": { "index": 22, "type": "static", + "transport-protocol": 17, "internal-src-address": "192.168.1.87", "external-src-address": "45.1.5.7" } |