diff options
author | Phil Sutter <phil@nwl.cc> | 2018-08-29 16:23:26 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-08-30 12:19:36 +0200 |
commit | 8f6e1c37e3e74e1fd490a0de5360ff1467c521cd (patch) | |
tree | b6dd7190edd587d228a80781efccd302e958c8bb /tests/py/inet | |
parent | 665da8df3cfaf482157b752f5de98c45038621c3 (diff) |
JSON: Rename mangle statement properties
Instead of the generic "left" and "right", use "key" and "value".
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/inet')
-rw-r--r-- | tests/py/inet/map.t.json | 8 | ||||
-rw-r--r-- | tests/py/inet/map.t.json.output | 8 | ||||
-rw-r--r-- | tests/py/inet/rt.t.json | 4 | ||||
-rw-r--r-- | tests/py/inet/tcpopt.t.json | 4 | ||||
-rw-r--r-- | tests/py/inet/udp.t.json | 8 |
5 files changed, 16 insertions, 16 deletions
diff --git a/tests/py/inet/map.t.json b/tests/py/inet/map.t.json index 207ac3f3..1cb28e01 100644 --- a/tests/py/inet/map.t.json +++ b/tests/py/inet/map.t.json @@ -2,10 +2,10 @@ [ { "mangle": { - "left": { + "key": { "meta": { "key": "mark" } }, - "right": { + "value": { "map": { "key": { "payload": { @@ -35,10 +35,10 @@ [ { "mangle": { - "left": { + "key": { "meta": { "key": "mark" } }, - "right": { + "value": { "map": { "key": { "payload": { diff --git a/tests/py/inet/map.t.json.output b/tests/py/inet/map.t.json.output index 9c235e30..b0bb7ddf 100644 --- a/tests/py/inet/map.t.json.output +++ b/tests/py/inet/map.t.json.output @@ -2,10 +2,10 @@ [ { "mangle": { - "left": { + "key": { "meta": { "key": "mark" } }, - "right": { + "value": { "map": { "key": { "payload": { @@ -35,10 +35,10 @@ [ { "mangle": { - "left": { + "key": { "meta": { "key": "mark" } }, - "right": { + "value": { "map": { "key": { "payload": { diff --git a/tests/py/inet/rt.t.json b/tests/py/inet/rt.t.json index 92f2dbea..e81bcfd8 100644 --- a/tests/py/inet/rt.t.json +++ b/tests/py/inet/rt.t.json @@ -39,13 +39,13 @@ [ { "mangle": { - "left": { + "key": { "tcp option": { "field": "size", "name": "maxseg" } }, - "right": { + "value": { "rt": { "key": "mtu" } diff --git a/tests/py/inet/tcpopt.t.json b/tests/py/inet/tcpopt.t.json index d4632187..431ee021 100644 --- a/tests/py/inet/tcpopt.t.json +++ b/tests/py/inet/tcpopt.t.json @@ -405,13 +405,13 @@ [ { "mangle": { - "left": { + "key": { "tcp option": { "field": "size", "name": "maxseg" } }, - "right": 1360 + "value": 1360 } } ] diff --git a/tests/py/inet/udp.t.json b/tests/py/inet/udp.t.json index 896d20d8..5ea073d7 100644 --- a/tests/py/inet/udp.t.json +++ b/tests/py/inet/udp.t.json @@ -694,13 +694,13 @@ }, { "mangle": { - "left": { + "key": { "payload": { "field": "checksum", "protocol": "udp" } }, - "right": 0 + "value": 0 } } ] @@ -717,13 +717,13 @@ }, { "mangle": { - "left": { + "key": { "payload": { "field": "dport", "protocol": "udp" } }, - "right": 65535 + "value": 65535 } } ] |