Debian Codegraph @

tests/shell/testcases/maps/0014destroy_0

raw
1 #!/bin/bash -e
2
3 # NFT_TEST_REQUIRES(NFT_TEST_HAVE_destroy)
4
5 $NFT add table x
6
7 # pass for non-existent map
8 $NFT destroy map x y
9
10 # successfully delete existing map
11 $NFT add map x y '{ type ipv4_addr : ipv4_addr; }'
12 $NFT destroy map x y