]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: shell: extend implicit chain map with flush command
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 20 Jul 2023 07:14:16 +0000 (09:14 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 21 Jul 2023 13:37:12 +0000 (15:37 +0200)
Add a rule flush command.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/shell/testcases/transactions/0051map_0

index c4ea62cd2cfc742c13a28a475a2bb7f241bf10bb..9ea5cd4cff9533ffdc0a0c39fe0b1b70d6c8d78e 100755 (executable)
@@ -119,3 +119,4 @@ RULESET="table inet filter {
 
 $NFT -c -f - <<< "$RULESET" >/dev/null || exit 0
 $NFT -f - <<< "$RULESET" >/dev/null || exit 0
+$NFT flush table inet filter || exit 0