summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/maps/0014destroy_0
blob: ee81e3cdcca90126673cb78738c205ad9be7cfa8 (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 x

# pass for non-existent map
$NFT destroy map x y

# successfully delete existing map
$NFT add map x y '{ type ipv4_addr : ipv4_addr; }'
$NFT destroy map x y