summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/transactions/handle_bad_family
blob: 592241890a69b4ed22cd07c35e22f860e8bf8244 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash

NFT=nft

HANDLE=$($NFT -a -e add table ip x | cut -d '#' -f 2 | awk '{ print $2 }' | head -1)

# should fail
$NFT delete table inet handle $HANDLE
[ $? -ne 0 ] && exit 0