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/meta.t.json | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'tests/py/inet/meta.t.json') diff --git a/tests/py/inet/meta.t.json b/tests/py/inet/meta.t.json index 2687f69e..6c5f4567 100644 --- a/tests/py/inet/meta.t.json +++ b/tests/py/inet/meta.t.json @@ -3,7 +3,7 @@ { "match": { "left": { - "meta": "nfproto" + "meta": { "key": "nfproto" } }, "right": "ipv4" } @@ -15,7 +15,7 @@ { "match": { "left": { - "meta": "nfproto" + "meta": { "key": "nfproto" } }, "right": "ipv6" } @@ -27,7 +27,7 @@ { "match": { "left": { - "meta": "nfproto" + "meta": { "key": "nfproto" } }, "right": { "set": [ @@ -44,7 +44,7 @@ { "match": { "left": { - "meta": "nfproto" + "meta": { "key": "nfproto" } }, "op": "!=", "right": { @@ -62,7 +62,7 @@ { "match": { "left": { - "meta": "nfproto" + "meta": { "key": "nfproto" } }, "right": "ipv6" } @@ -85,7 +85,7 @@ { "match": { "left": { - "meta": "nfproto" + "meta": { "key": "nfproto" } }, "right": "ipv4" } @@ -108,7 +108,7 @@ { "match": { "left": { - "meta": "nfproto" + "meta": { "key": "nfproto" } }, "right": "ipv4" } @@ -131,7 +131,7 @@ { "match": { "left": { - "meta": "nfproto" + "meta": { "key": "nfproto" } }, "right": "ipv6" } @@ -139,7 +139,7 @@ { "match": { "left": { - "meta": "l4proto" + "meta": { "key": "l4proto" } }, "right": "tcp" } @@ -151,7 +151,7 @@ { "match": { "left": { - "meta": "nfproto" + "meta": { "key": "nfproto" } }, "right": "ipv4" } @@ -177,7 +177,7 @@ { "match": { "left": { - "meta": "secpath" + "meta": { "key": "secpath" } }, "right": true } @@ -189,7 +189,7 @@ { "match": { "left": { - "meta": "secpath" + "meta": { "key": "secpath" } }, "right": false } -- cgit v1.2.3