path: root/tests/shell/testcases/cache
diff options
authorPablo Neira Ayuso <>2021-04-30 00:30:05 +0200
committerPablo Neira Ayuso <>2021-05-02 23:30:35 +0200
commit56ca2432526ac14cc677b7da1262f027c7cf34be (patch)
treecd61b62d73e4c8abd3fc5ce1b6b64cd437395319 /tests/shell/testcases/cache
parent8327282de1073fc494f966158c2fbfd7d3fb47e0 (diff)
src: unbreak deletion by table handle
Use NFTA_TABLE_HANDLE instead of NFTA_TABLE_NAME to refer to the table 64-bit unique handle. Fixes: 7840b9224d5b ("evaluate: remove table from cache on delete table") Fixes: f8aec603aa7e ("src: initial extended netlink error reporting") Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'tests/shell/testcases/cache')
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/shell/testcases/cache/0008_delete_by_handle_0 b/tests/shell/testcases/cache/0008_delete_by_handle_0
new file mode 100755
index 00000000..24b2607b
--- /dev/null
+++ b/tests/shell/testcases/cache/0008_delete_by_handle_0
@@ -0,0 +1,20 @@
+set -e
+$NFT add table t
+$NFT delete table handle 1
+$NFT add table t
+$NFT add chain t c
+$NFT delete chain t handle 1
+$NFT add set t s { type ipv4_addr\; }
+$NFT delete set t handle 2
+$NFT add flowtable t f { hook ingress priority 0\; }
+$NFT delete flowtable t handle 4
+$NFT add counter t x
+$NFT delete counter t handle 5