netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] parser_bison: extend nft to delete table via table handle
@ 2018-01-07  5:01 Harsha Sharma
  0 siblings, 0 replies; only message in thread
From: Harsha Sharma @ 2018-01-07  5:01 UTC (permalink / raw)
  To: pablo, harshasharmaiitr; +Cc: netfilter-devel

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 <harshasharmaiitr@gmail.com>
---
Changes in v2:
 -remove tableid_spec

 src/parser_bison.y | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/parser_bison.y b/src/parser_bison.y
index 6e85a62..6fdfac9 100644
--- a/src/parser_bison.y
+++ b/src/parser_bison.y
@@ -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);
-- 
2.11.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-01-07  5:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-07  5:01 [PATCH v2] parser_bison: extend nft to delete table via table handle Harsha Sharma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).