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/icmp.t.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/py/inet/icmp.t.json') diff --git a/tests/py/inet/icmp.t.json b/tests/py/inet/icmp.t.json index c4517605..55217cc9 100644 --- a/tests/py/inet/icmp.t.json +++ b/tests/py/inet/icmp.t.json @@ -32,7 +32,7 @@ [ { "match": { - "left": { "meta": "nfproto" }, + "left": { "meta": { "key": "nfproto" } }, "right": "ipv4" } }, @@ -53,7 +53,7 @@ [ { "match": { - "left": { "meta": "nfproto" }, + "left": { "meta": { "key": "nfproto" } }, "right": "ipv4" } }, @@ -74,7 +74,7 @@ [ { "match": { - "left": { "meta": "nfproto" }, + "left": { "meta": { "key": "nfproto" } }, "right": "ipv6" } }, @@ -95,7 +95,7 @@ [ { "match": { - "left": { "meta": "nfproto" }, + "left": { "meta": { "key": "nfproto" } }, "right": "ipv6" } }, -- cgit v1.2.3