From 8f6e1c37e3e74e1fd490a0de5360ff1467c521cd Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Wed, 29 Aug 2018 16:23:26 +0200 Subject: JSON: Rename mangle statement properties Instead of the generic "left" and "right", use "key" and "value". Signed-off-by: Phil Sutter Signed-off-by: Pablo Neira Ayuso --- tests/py/inet/map.t.json | 8 ++++---- tests/py/inet/map.t.json.output | 8 ++++---- tests/py/inet/rt.t.json | 4 ++-- tests/py/inet/tcpopt.t.json | 4 ++-- tests/py/inet/udp.t.json | 8 ++++---- 5 files changed, 16 insertions(+), 16 deletions(-) (limited to 'tests/py/inet') 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 } } ] -- cgit v1.2.3