Subject: Re: [PATCH net-next v1 0/2] netlink: Add nftables spec w/ multi messages

From: Pablo Neira Ayuso <[email-masked]>
Date: Wed, 27 Mar 2024 23:45:57 +0100

Please, Cc [email-masked] for netfilter related stuff.

On Wed, Mar 27, 2024 at 06:16:58PM +0000, Donald Hunter wrote:
> This series adds a ynl spec for nftables and extends ynl with a --multi
> command line option that makes it possible to send transactional batches
> for nftables.
> 
> An example of usage is:
> 
> ./tools/net/ynl/cli.py \
>  --spec Documentation/netlink/specs/nftables.yaml \
>  --multi batch-begin '{"res-id": 10}' \
>  --multi newtable '{"name": "test", "nfgen-family": 1}' \
>  --multi newchain '{"name": "chain", "table": "test", "nfgen-family": 1}' \
>  --multi batch-end '{"res-id": 10}'
> 
> Donald Hunter (2):
>   doc/netlink/specs: Add draft nftables spec
>   tools/net/ynl: Add multi message support to ynl
> 
>  Documentation/netlink/specs/nftables.yaml | 1264 +++++++++++++++++++++
>  tools/net/ynl/cli.py                      |   22 +-
>  tools/net/ynl/lib/ynl.py                  |   47 +-
>  3 files changed, 1315 insertions(+), 18 deletions(-)
>  create mode 100644 Documentation/netlink/specs/nftables.yaml
> 
> -- 
> 2.44.0
> 
>