From c1ce4072b72e34300bd7bb406652a60f62384fc8 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Fri, 3 Jan 2020 17:46:24 +0100 Subject: 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 --- tests/shell/testcases/flowtable/0011deleteafterflush_0 | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 tests/shell/testcases/flowtable/0011deleteafterflush_0 (limited to 'tests') 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 -- cgit v1.2.3