Re: [nft PATCH v3] This patch adds the following operation:

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 23 January 2014 10:49, Arturo Borrero Gonzalez
<arturo.borrero.glez@xxxxxxxxx> wrote:
>  :~# nft export <xml|json>
>
> The XML/JSON output is provided raw by libnftnl, thus without format.
>
> In case of XML, you can give format with the `xmllint' tool from libxml2-tools:
>  :~# nft list ruleset xml | xmllint --format -
>
> In case of JSON, you can use `json_pp' from perl standar package:
>  :~# nft list ruleset json | json_pp
>
> A format field is added in struct cmd, and it will be reused in the import
> operation.
>
> Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@xxxxxxxxx>
> ---
> v2: address comments by Patrick: use CMD_OBJ_RULESET, move some includes, etc.
> v3: rebase against nft's next-3.14 branch.

ops, I lost the subject line :(

-- 
Arturo Borrero González
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux