]> git.ipfire.org Git - thirdparty/nftables.git/commit
parser_bison: explicit indication on export ruleset
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 27 Jul 2016 10:57:57 +0000 (12:57 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 23 Aug 2016 15:15:52 +0000 (17:15 +0200)
commitf6d06a649062464a609125aee1cb5b80693d100e
tree1fb4711e1a0c8051846b0ed4584483e510eea18d
parentcec8dde7af3ec0f2e16d6445b14f77a2c357221e
parser_bison: explicit indication on export ruleset

This patch modifies the grammar to explicitly indicate what you want to
export, eg.

 # nft export ruleset json

This leaves room to extend this later on to support other object types,
such as integrating conntrack into nft.

This also leaves the syntax in consistent state wrt. other existing
objects. The existing syntax is still preserved.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/parser_bison.y