mirror of
https://git.netfilter.org/nftables
synced 2026-01-26 02:27:52 +00:00
tests: json_echo: Drop rule handle before multi-add
Now that JSON parser respects rule handles in explicit add commands, the
still present rule handle causes an error since the old rule does not
exist anymore.
Fixes: 50b5b71ebeee3 ("parser_json: Rewrite echo support")
Signed-off-by: Phil Sutter <phil@nwl.cc>
This commit is contained in:
parent
7e7c152fc8
commit
ad74cbd63a
@ -290,6 +290,7 @@ add_quota["add"]["quota"]["name"] = "q"
|
||||
do_flush()
|
||||
|
||||
print("doing multi add")
|
||||
del(add_rule["add"]["rule"]["handle"])
|
||||
add_multi = [ add_table, add_chain, add_set, add_rule ]
|
||||
out = do_command(add_multi)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user