summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/rule_management/dumps/0012destroy_0.nft
Commit message (Collapse)AuthorAgeFilesLines
* src: add support to command "destroy"Fernando F. Mancera2023-02-061-0/+4
"destroy" command performs a deletion as "delete" command but does not fail if the object does not exist. As there is no NLM_F_* flag for ignoring such error, it needs to be ignored directly on error handling. Example of use: # nft list ruleset table ip filter { chain output { } } # nft destroy table ip missingtable # echo $? 0 # nft list ruleset table ip filter { chain output { } } Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>