summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/chains/0044chain_destroy_0
blob: 5c5a10a7b9c8028be0c226560aef151c92327c47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash -e

# NFT_TEST_REQUIRES(NFT_TEST_HAVE_destroy)

$NFT add table t

# pass for non-existent chain
$NFT destroy chain t c

# successfully delete existing chain
$NFT add chain t c
$NFT destroy chain t c