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/ip6 | |
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/ip6')
-rw-r--r-- | tests/py/ip6/ip6.t.json | 36 | ||||
-rw-r--r-- | tests/py/ip6/ip6.t.json.output | 4 | ||||
-rw-r--r-- | tests/py/ip6/map.t.json | 4 | ||||
-rw-r--r-- | tests/py/ip6/map.t.json.output | 4 |
4 files changed, 24 insertions, 24 deletions
diff --git a/tests/py/ip6/ip6.t.json b/tests/py/ip6/ip6.t.json index a0a3079a..d6acaa3b 100644 --- a/tests/py/ip6/ip6.t.json +++ b/tests/py/ip6/ip6.t.json @@ -1416,13 +1416,13 @@ }, { "mangle": { - "left": { + "key": { "payload": { "field": "daddr", "protocol": "ip6" } }, - "right": "::1" + "value": "::1" } } ] @@ -1439,13 +1439,13 @@ }, { "mangle": { - "left": { + "key": { "payload": { "field": "hoplimit", "protocol": "ip6" } }, - "right": 1 + "value": 1 } } ] @@ -1462,13 +1462,13 @@ }, { "mangle": { - "left": { + "key": { "payload": { "field": "dscp", "protocol": "ip6" } }, - "right": "af42" + "value": "af42" } } ] @@ -1485,13 +1485,13 @@ }, { "mangle": { - "left": { + "key": { "payload": { "field": "dscp", "protocol": "ip6" } }, - "right": 63 + "value": 63 } } ] @@ -1508,13 +1508,13 @@ }, { "mangle": { - "left": { + "key": { "payload": { "field": "ecn", "protocol": "ip6" } }, - "right": "ect0" + "value": "ect0" } } ] @@ -1531,13 +1531,13 @@ }, { "mangle": { - "left": { + "key": { "payload": { "field": "ecn", "protocol": "ip6" } }, - "right": "ce" + "value": "ce" } } ] @@ -1554,13 +1554,13 @@ }, { "mangle": { - "left": { + "key": { "payload": { "field": "flowlabel", "protocol": "ip6" } }, - "right": 0 + "value": 0 } } ] @@ -1577,13 +1577,13 @@ }, { "mangle": { - "left": { + "key": { "payload": { "field": "flowlabel", "protocol": "ip6" } }, - "right": 12345 + "value": 12345 } } ] @@ -1600,13 +1600,13 @@ }, { "mangle": { - "left": { + "key": { "payload": { "field": "flowlabel", "protocol": "ip6" } }, - "right": "0xfffff" + "value": "0xfffff" } } ] diff --git a/tests/py/ip6/ip6.t.json.output b/tests/py/ip6/ip6.t.json.output index 2b814721..48f28b3d 100644 --- a/tests/py/ip6/ip6.t.json.output +++ b/tests/py/ip6/ip6.t.json.output @@ -348,13 +348,13 @@ }, { "mangle": { - "left": { + "key": { "payload": { "field": "flowlabel", "protocol": "ip6" } }, - "right": 1048575 + "value": 1048575 } } ] diff --git a/tests/py/ip6/map.t.json b/tests/py/ip6/map.t.json index 2ddb3080..78a01c6b 100644 --- a/tests/py/ip6/map.t.json +++ b/tests/py/ip6/map.t.json @@ -2,10 +2,10 @@ [ { "mangle": { - "left": { + "key": { "meta": { "key": "mark" } }, - "right": { + "value": { "map": { "key": { "&": [ diff --git a/tests/py/ip6/map.t.json.output b/tests/py/ip6/map.t.json.output index 84343763..9280d55e 100644 --- a/tests/py/ip6/map.t.json.output +++ b/tests/py/ip6/map.t.json.output @@ -2,10 +2,10 @@ [ { "mangle": { - "left": { + "key": { "meta": { "key": "mark" } }, - "right": { + "value": { "map": { "key": { "&": [ |