From: Phil Sutter Date: Mon, 28 May 2018 16:51:08 +0000 (+0200) Subject: tests/py: Add missing JSON equivalent for inet/sets.t X-Git-Tag: v0.9.0~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c34637ea8be9e88fa76aedab4a5244c04f43a6ea;p=thirdparty%2Fnftables.git tests/py: Add missing JSON equivalent for inet/sets.t This adds the missing JSON variant for the two rules which are supposed to work. Fixes: 2efbdf7b8fcf7 ("tests: py: allow to specify sets with a timeout") Signed-off-by: Phil Sutter Signed-off-by: Pablo Neira Ayuso --- diff --git a/tests/py/inet/sets.t.json b/tests/py/inet/sets.t.json new file mode 100644 index 00000000..75881f71 --- /dev/null +++ b/tests/py/inet/sets.t.json @@ -0,0 +1,37 @@ +# ip saddr @set1 drop +[ + { + "match": { + "left": { + "payload": { + "field": "saddr", + "name": "ip" + } + }, + "right": "@set1" + } + }, + { + "drop": null + } +] + +# ip6 daddr != @set2 accept +[ + { + "match": { + "left": { + "payload": { + "field": "daddr", + "name": "ip6" + } + }, + "op": "!=", + "right": "@set2" + } + }, + { + "accept": null + } +] +