path: root/tests/shell/testcases/transactions/0046set_0
diff options
authorPablo Neira Ayuso <>2019-03-08 14:31:50 +0100
committerPablo Neira Ayuso <>2019-03-08 14:39:07 +0100
commit282de263ed2384bb4958aba9b829a091786a215a (patch)
treef815573ff7874f2d28bed1c66b6a30e272cb59a0 /tests/shell/testcases/transactions/0046set_0
parent2d103fce8dfacd7e063d7ecf60eaafe9266b762b (diff)
tests: shell: bogus EBUSY in set deletion after flush
flush chain ip filter group_7933 Removes all rules, including references to set 'group_7933', however: delete map ip filter group_7933 results in: delete.nft:6:1-32: Error: Could not process rule: Device or resource busy delete map ip filter group_7933 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'tests/shell/testcases/transactions/0046set_0')
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/shell/testcases/transactions/0046set_0 b/tests/shell/testcases/transactions/0046set_0
new file mode 100755
index 00000000..172e24dd
--- /dev/null
+++ b/tests/shell/testcases/transactions/0046set_0
@@ -0,0 +1,18 @@
+RULESET='add table ip filter
+add chain ip filter group_7933
+add map ip filter group_7933 { type ipv4_addr : classid; flags interval; }
+add rule ip filter group_7933 meta priority 0 meta priority set ip saddr map @group_7933 counter
+add element ip filter group_7933 { : "1:0xc7cb" }
+set -e
+$NFT -f - <<< "$RULESET"
+RULESET='delete element ip filter group_7933 { }
+flush chain ip filter group_7933
+delete chain ip filter group_7933
+delete map ip filter group_7933'
+$NFT -f - <<< "$RULESET"