Bug#926411: Export to json/xml doesn't work

2019-07-10 Thread Michal Šafránek
I found solution/workaround: there is a parameter -j, which outputs to json format, so if you run nft with this parameter, you will get JSON formatted output. nft -j list ruleset {"nftables": [{"table": {"family": "inet", "name": "filter", "handle": 14}}, {"chain": {"family": "inet", "table": "f

Bug#926411: Export to json/xml doesn't work

2019-04-04 Thread jaroslav
Package: nftables Version: 0.9.0-2 Severity: normal Hello, according to the nft man page, it is possible to export current ruleset to JSON or XML format using this command: nft export [ruleset] format where format is a mandatory parameter and "may be either xml or json". Using the export com