From: Pablo Neira Ayuso Date: Fri, 3 Jan 2020 16:46:24 +0000 (+0100) Subject: tests: shell: delete flowtable after flushing chain X-Git-Tag: v0.9.4~109 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c1ce4072b72e34300bd7bb406652a60f62384fc8;p=thirdparty%2Fnftables.git tests: shell: delete flowtable after flushing chain This patch adds a test to cover delete flowtable after chain flush including two rule references to the flowtable. Signed-off-by: Pablo Neira Ayuso --- diff --git a/tests/shell/testcases/flowtable/0011deleteafterflush_0 b/tests/shell/testcases/flowtable/0011deleteafterflush_0 new file mode 100755 index 00000000..4f519a7c --- /dev/null +++ b/tests/shell/testcases/flowtable/0011deleteafterflush_0 @@ -0,0 +1,10 @@ +#!/bin/bash + +set -e +$NFT add table x +$NFT add chain x y +$NFT add flowtable x f { hook ingress priority 0\; devices = { lo }\;} +$NFT add rule x y ip protocol tcp flow add @f +$NFT add rule x y ip protocol udp flow add @f +$NFT flush chain x y +$NFT delete flowtable x f