parser_bison: extend nft to delete table via table handle
PATCH v2 1/1 parser_bison: extend nft to delete table via table handle
This patch allows deletion of table via unique table handles which can be listed with '-a' option.
For.eg.
nft delete table handle 4
Signed-off-by Harsha Sharma <[email protected]>
---
Changes in v2:
-remove tableid_spec
src/parser_bison.y | 4 ++++ 1 file changed, 4 insertions(+)
src/parser_bison.y +4 -0
@@ -978,6 +978,10 @@ delete_cmd : TABLE table_spec { $$ = cmd_alloc(CMD_DELETE, CMD_OBJ_TABLE, &$2, &@$, NULL); } + | TABLE handle_spec + { + $$ = cmd_alloc(CMD_DELETE, CMD_OBJ_TABLE, &$2, &@$, NULL); + } | CHAIN chain_spec { $$ = cmd_alloc(CMD_DELETE, CMD_OBJ_CHAIN, &$2, &@$, NULL);
Signature · 1 line
2.11.0