summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/flowtable/0005delete_in_use_1
blob: 149d64442fdde15fbcf09e5f14eeef8484fb13c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

set -e
$NFT add table x
$NFT add chain x x
$NFT add flowtable x y { hook ingress priority 0\; devices = { lo }\;}
$NFT add rule x x flow offload @y

$NFT delete flowtable x y || exit 0
echo "E: delete flowtable in use"
exit 1