]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: check we can use "dynamic" set for lookups
authorFlorian Westphal <fw@strlen.de>
Mon, 7 Oct 2019 14:34:32 +0000 (16:34 +0200)
committerFlorian Westphal <fw@strlen.de>
Mon, 7 Oct 2019 14:34:32 +0000 (16:34 +0200)
Requires kernel commit acab713177377
("netfilter: nf_tables: allow lookups in dynamic sets"), else the
rule add will fail.

Signed-off-by: Florian Westphal <fw@strlen.de>
tests/shell/testcases/sets/0036add_set_element_expiration_0

index f534802a718e9665baaf077a77a07be4a59028e8..8dfed6c1a6446cd1a0be3405f146a2c819d8eaa2 100755 (executable)
@@ -9,3 +9,5 @@ add element ip x y { 1.1.1.1 timeout 30s expires 15s }"
 test_output=$($NFT -e -f - <<< "$RULESET" 2>&1)
 
 diff -u <(echo "$test_output") <(echo "$RULESET")
+
+$NFT "add chain ip x c; add rule ip x c ip saddr @y"