From c351f337b4e5c71b3551eef1d1b936d1e56b5601 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 27 Dec 2018 21:19:08 +0100 Subject: src: remove deprecated code for export/import commands Update parser to display this error message: # nft export json Error: JSON export is no longer supported, use 'nft -j list ruleset' instead export json ^^^^^^^^^^^^ Just like: # nft export vm json Error: JSON export is no longer supported, use 'nft -j list ruleset' instead export vm json ^^^^^^^^^^^^^^^ Signed-off-by: Pablo Neira Ayuso --- src/parser_bison.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/parser_bison.y') diff --git a/src/parser_bison.y b/src/parser_bison.y index 34202b04..01f5be95 100644 --- a/src/parser_bison.y +++ b/src/parser_bison.y @@ -1422,7 +1422,7 @@ monitor_format : /* empty */ { $$ = NFTNL_OUTPUT_DEFAULT; } ; markup_format : XML { $$ = __NFT_OUTPUT_NOTSUPP; } - | JSON { $$ = __NFT_OUTPUT_NOTSUPP; } + | JSON { $$ = NFTNL_OUTPUT_JSON; } | VM JSON { $$ = NFTNL_OUTPUT_JSON; } ; -- cgit v1.2.3