tools: ynl: add a completely generic client
authorJakub Kicinski <kuba@kernel.org>
Fri, 20 Jan 2023 17:50:41 +0000 (09:50 -0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 24 Jan 2023 09:58:11 +0000 (10:58 +0100)
commite4b48ed460d369070ce1d491800acf50ab9701d2
tree6b88fb099f06fdf527aa46e9ecbb2a669a3d392d
parent1d562c32e4392cc091c940918ee1ffd7bfcb9e96
tools: ynl: add a completely generic client

Add a CLI sample which can take in arbitrary request
in JSON format, convert it to Netlink and do the inverse
for output.

It's meant as a development tool primarily and perhaps
for selftests which need to tickle netlink in a special way.

Acked-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/net/ynl/samples/cli.py [new file with mode: 0755]
tools/net/ynl/samples/ynl.py [new file with mode: 0644]