2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/tools/net/ynl/pyynl
Donald Hunter 09d7ff0694 tools: ynl: parse extack for sub-messages
Extend the Python YNL extack decoding to handle sub-messages in the same
way that YNL C does. This involves retaining the input values so that
they are available during extack decoding.

./tools/net/ynl/pyynl/cli.py --family rt-link --do newlink --create \
    --json '{
        "linkinfo": {"kind": "netkit", "data": {"policy": 10} }
    }'
Netlink error: Invalid argument
nl_len = 92 (76) nl_flags = 0x300 nl_type = 2
	error: -22
	extack: {'msg': 'Provided default xmit policy not supported', 'bad-attr': '.linkinfo.data(netkit).policy'}

Signed-off-by: Donald Hunter <donald.hunter@gmail.com>
Link: https://patch.msgid.link/20250523103031.80236-1-donald.hunter@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-05-27 17:31:42 -07:00
..
lib tools: ynl: parse extack for sub-messages 2025-05-27 17:31:42 -07:00
__init__.py
.gitignore
cli.py tools: ynl: handle broken pipe gracefully in CLI 2025-05-09 16:28:23 -07:00
ethtool.py tools/net/ynl: ethtool: fix crash when Hardware Clock info is missing 2025-05-09 15:03:07 -07:00
ynl_gen_c.py tools: ynl-gen: support weird sub-message formats 2025-05-21 12:38:23 -07:00
ynl_gen_rst.py tools: ynl: fix typo in info string 2025-04-29 15:13:52 -07:00