From 2a4a5a2c8ae21f2bcf7e81b5eafea91d799ee88a Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Wed, 29 Aug 2018 16:23:22 +0200 Subject: JSON: Make meta statement/expression extensible Lessons learned from fwd statement: We must not assume a given statement/expression may not receive further properties in the future. Therefore make meta value an object with a property "key" instead of just a string containing the key name. Signed-off-by: Phil Sutter Signed-off-by: Pablo Neira Ayuso --- tests/py/inet/reject.t.json.output | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'tests/py/inet/reject.t.json.output') diff --git a/tests/py/inet/reject.t.json.output b/tests/py/inet/reject.t.json.output index b1e77990..46875434 100644 --- a/tests/py/inet/reject.t.json.output +++ b/tests/py/inet/reject.t.json.output @@ -3,7 +3,7 @@ { "match": { "left": { - "meta": "nfproto" + "meta": { "key": "nfproto" } }, "right": "ipv4" } @@ -21,7 +21,7 @@ { "match": { "left": { - "meta": "nfproto" + "meta": { "key": "nfproto" } }, "right": "ipv4" } @@ -39,7 +39,7 @@ { "match": { "left": { - "meta": "nfproto" + "meta": { "key": "nfproto" } }, "right": "ipv4" } @@ -57,7 +57,7 @@ { "match": { "left": { - "meta": "nfproto" + "meta": { "key": "nfproto" } }, "right": "ipv4" } @@ -72,7 +72,7 @@ { "match": { "left": { - "meta": "nfproto" + "meta": { "key": "nfproto" } }, "right": "ipv4" } @@ -90,7 +90,7 @@ { "match": { "left": { - "meta": "nfproto" + "meta": { "key": "nfproto" } }, "right": "ipv4" } @@ -108,7 +108,7 @@ { "match": { "left": { - "meta": "nfproto" + "meta": { "key": "nfproto" } }, "right": "ipv4" } @@ -126,7 +126,7 @@ { "match": { "left": { - "meta": "nfproto" + "meta": { "key": "nfproto" } }, "right": "ipv6" } @@ -144,7 +144,7 @@ { "match": { "left": { - "meta": "nfproto" + "meta": { "key": "nfproto" } }, "right": "ipv6" } @@ -162,7 +162,7 @@ { "match": { "left": { - "meta": "nfproto" + "meta": { "key": "nfproto" } }, "right": "ipv6" } @@ -180,7 +180,7 @@ { "match": { "left": { - "meta": "nfproto" + "meta": { "key": "nfproto" } }, "right": "ipv6" } @@ -195,7 +195,7 @@ { "match": { "left": { - "meta": "l4proto" + "meta": { "key": "l4proto" } }, "right": 6 } @@ -203,7 +203,7 @@ { "match": { "left": { - "meta": "mark" + "meta": { "key": "mark" } }, "right": 12345 } -- cgit v1.2.3