summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/flowtable/0015destroy_0
blob: 9e91ef5036a2e3993ef5626d4c451915906da592 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh -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