summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/flowtable/0015destroy_0
blob: d2a87da080fbc47d2a3bda064f87a6323271e81f (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 flowtable
$NFT destroy flowtable t f

# successfully delete existing flowtable
$NFT add flowtable t f '{ hook ingress priority 10; devices = { lo }; }'
$NFT destroy flowtable t f