From 449e9d5e6946118623b46f7a37eb323c789223b5 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 17 Jun 2019 13:28:49 +0200 Subject: 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 --- tests/shell/testcases/nft-f/0006action_object_0 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/shell/testcases/nft-f') 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 -- cgit v1.2.3