linux/tools/net/ynl/lib
Jakub Kicinski 72ba6cba0a tools: ynl: don't return None for dumps
YNL currently reports None for empty dump:

 $ cli.py ...netdev.yaml --dump page-pool-get
 None

This doesn't matter for the CLI but when writing YNL based tests
having to deal with either list or None is annoying. Limit the
None conversion to non-dump ops:

 $ cli.py ...netdev.yaml --dump page-pool-get
 []

Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Link: https://lore.kernel.org/r/20240412141436.828666-3-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-04-15 11:21:11 -07:00
..
__init__.py tools/net/ynl: Report netlink errors without stacktrace 2024-03-07 20:28:26 -08:00
.gitignore tools: net: add __pycache__ to gitignore 2023-02-24 11:55:47 -08:00
Makefile tools: ynl: remove __pycache__ during clean 2024-03-06 12:05:10 +00:00
nlspec.py netlink: specs: support generating code for genl socket priv 2024-03-11 15:15:42 -07:00
ynl-priv.h tools: ynl: check for overflow of constructed messages 2024-03-07 11:01:31 -08:00
ynl.c tools: ynl: Fix spelling mistake "Constructred" -> "Constructed" 2024-03-08 19:58:13 -08:00
ynl.h tools: ynl: add ynl_dump_empty() helper 2024-04-02 18:01:58 -07:00
ynl.py tools: ynl: don't return None for dumps 2024-04-15 11:21:11 -07:00