[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240327181700.77940-1-donald.hunter@gmail.com>
Date: Wed, 27 Mar 2024 18:16:58 +0000
From: Donald Hunter <donald.hunter@...il.com>
To: netdev@...r.kernel.org,
Jakub Kicinski <kuba@...nel.org>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Paolo Abeni <pabeni@...hat.com>,
Jiri Pirko <jiri@...nulli.us>,
Jacob Keller <jacob.e.keller@...el.com>,
Stanislav Fomichev <sdf@...gle.com>
Cc: donald.hunter@...hat.com,
Donald Hunter <donald.hunter@...il.com>
Subject: [PATCH net-next v1 0/2] netlink: Add nftables spec w/ multi messages
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
Powered by blists - more mailing lists