summaryrefslogtreecommitdiffstats
path: root/src/parser_bison.y
diff options
context:
space:
mode:
authorPablo M. Bermudo Garay <pablombg@gmail.com>2016-05-19 14:46:03 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2016-05-20 11:40:01 +0200
commit59c58dbea5764c6154fdd4ea72d36433e2389a62 (patch)
tree77376a9fa494b6e08a0ea990cc6988613da0687c /src/parser_bison.y
parentd4b86b6bfdf979a13c7cf4231bb4ec1d0c04d6a3 (diff)
rule: add 'list flow tables' support
This commit adds a new command that lists flow tables: # nft list flow tables [family] Only the declaration is displayed. If no family is specified, all flow tables of all families are listed. Signed-off-by: Pablo M. Bermudo Garay <pablombg@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/parser_bison.y')
-rw-r--r--src/parser_bison.y4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parser_bison.y b/src/parser_bison.y
index 76cf65cb..c71f6df0 100644
--- a/src/parser_bison.y
+++ b/src/parser_bison.y
@@ -836,6 +836,10 @@ list_cmd : TABLE table_spec
{
$$ = cmd_alloc(CMD_LIST, CMD_OBJ_RULESET, &$2, &@$, NULL);
}
+ | FLOW TABLES ruleset_spec
+ {
+ $$ = cmd_alloc(CMD_LIST, CMD_OBJ_FLOWTABLES, &$3, &@$, NULL);
+ }
;
flush_cmd : TABLE table_spec