diff options
author | Florian Westphal <fw@strlen.de> | 2019-08-29 11:36:20 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2019-08-29 15:41:18 +0200 |
commit | cda5c8c26f329bbd3655fd7d1af4e1eec55ec397 (patch) | |
tree | 505c3ae5a2dfca79050a7f8c947911c7f6445817 /tests/py/ip6/sets.t.json | |
parent | a87f2a2227be29cc1e91f3301cec963f02aa5178 (diff) |
src: json: add support for element deletion
also add a test case.
Fixes: a87f2a2227be2 ("netfilter: support for element deletion")
Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'tests/py/ip6/sets.t.json')
-rw-r--r-- | tests/py/ip6/sets.t.json | 25 |
1 files changed, 25 insertions, 0 deletions
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" + } + } +] |