Re: [RFC PATCH nft V3] src: Add import command for json

2017-09-12 Thread Arturo Borrero Gonzalez
On 11 September 2017 at 18:53, Shyam Saini wrote: > This new operation allows to import ruleset in json to make > incremental changes using the parse functions of libnftnl. > > A basic way to test this new functionality is: > > % cat file.json | nft import json > > where

[RFC PATCH nft V3] src: Add import command for json

2017-09-11 Thread Shyam Saini
This new operation allows to import ruleset in json to make incremental changes using the parse functions of libnftnl. A basic way to test this new functionality is: % cat file.json | nft import json where the file.json is a ruleset exported in json format. Highly based on work from Alvaro