From cda5c8c26f329bbd3655fd7d1af4e1eec55ec397 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Thu, 29 Aug 2019 11:36:20 +0200 Subject: src: json: add support for element deletion also add a test case. Fixes: a87f2a2227be2 ("netfilter: support for element deletion") Signed-off-by: Florian Westphal Acked-by: Phil Sutter --- tests/py/ip6/sets.t.json | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'tests/py/ip6/sets.t.json') diff --git a/tests/py/ip6/sets.t.json b/tests/py/ip6/sets.t.json index 9a75dd6f..948c1f16 100644 --- a/tests/py/ip6/sets.t.json +++ b/tests/py/ip6/sets.t.json @@ -91,3 +91,28 @@ } ] +# delete @set5 { ip6 saddr . ip6 daddr } +[ + { + "set": { + "elem": { + "concat": [ + { + "payload": { + "field": "saddr", + "protocol": "ip6" + } + }, + { + "payload": { + "field": "daddr", + "protocol": "ip6" + } + } + ] + }, + "op": "delete", + "set": "@set5" + } + } +] -- cgit v1.2.3