]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
parser: show all tables via list tables with no family
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 22 Sep 2015 22:14:33 +0000 (00:14 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 23 Sep 2015 10:17:07 +0000 (12:17 +0200)
Default to the same behaviour that we get through `list ruleset', ie.

 # nft list tables
 table ip filter
 table ip6 filter

 # nft list tables ip
 table ip filter

 # nft list tables ip6
 table ip6 filter

Closes: http://bugzilla.netfilter.org/show_bug.cgi?id=1033
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/parser_bison.y

index 385e2140c7af96666eaff540705897850b2aae55..36910a7f89176a1c430604af9743062841d33b07 100644 (file)
@@ -767,7 +767,7 @@ list_cmd            :       TABLE           table_spec
                        {
                                $$ = cmd_alloc(CMD_LIST, CMD_OBJ_TABLE, &$2, &@$, NULL);
                        }
-                       |       TABLES          tables_spec
+                       |       TABLES          ruleset_spec
                        {
                                $$ = cmd_alloc(CMD_LIST, CMD_OBJ_TABLE, &$2, &@$, NULL);
                        }