summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/flowtable/0005delete_in_use_1
blob: ef52620d9958cd2559122987a3d215175e800389 (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 add @y

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