From: Pablo Neira Ayuso Date: Mon, 17 Jun 2019 11:28:49 +0000 (+0200) Subject: tests: shell: cannot use handle for non-existing rule in kernel X-Git-Tag: v0.9.1~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=449e9d5e6946118623b46f7a37eb323c789223b5;p=thirdparty%2Fnftables.git tests: shell: cannot use handle for non-existing rule in kernel Do not guess handle for an unexisting rule in the kernel. Signed-off-by: Pablo Neira Ayuso --- diff --git a/tests/shell/testcases/nft-f/0006action_object_0 b/tests/shell/testcases/nft-f/0006action_object_0 index ffa6c9bd..fab3070f 100755 --- a/tests/shell/testcases/nft-f/0006action_object_0 +++ b/tests/shell/testcases/nft-f/0006action_object_0 @@ -16,7 +16,7 @@ generate1() add set $family t s {type inet_service;} add element $family t s {8080} insert rule $family t c meta l4proto tcp tcp dport @s accept - replace rule $family t c handle 2 meta l4proto tcp tcp dport {9090, 8080} + add rule $family t c meta l4proto tcp tcp dport {9090, 8080} add map $family t m {type inet_service:verdict;} add element $family t m {10080:drop} insert rule $family t c meta l4proto tcp tcp dport vmap @m