[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID:
<MN0PR18MB58478446CEBD0532BB7CD453D3FEA@MN0PR18MB5847.namprd18.prod.outlook.com>
Date: Sat, 25 Oct 2025 13:10:30 +0000
From: Ratheesh Kannoth <rkannoth@...vell.com>
To: Jakub Kicinski <kuba@...nel.org>
CC: Netdev <netdev@...r.kernel.org>
Subject: Re: Re: ynl newbie question
From: Jakub Kicinski <kuba@...nel.org>
Subject: [EXTERNAL] Re: ynl newbie question
>I think you trimmed the stack trace a little too much?
Below is the full output.
#########################################
root@...alhost:~/linux# ./tools/net/ynl/pyynl/cli.py --spec Documentation/netlink/specs/ethtool.yaml --do rings-get --json '{"header":{"dev-index": 18}}'
File "./tools/net/ynl/pyynl/cli.py", line 23
raise Exception(f"Schema directory {schema_dir} does not exist")
^
SyntaxError: invalid syntax
#################################
>But my guess if you're having issues with the schema is Python support
>for jsonschema.
I agree. But not getting any clue from the output error.
I see this issue in a rootfs which is created out of ubunutu xenial. I have installed jsonschema here.
I don’t think it is an issue with ubuntu as I could execute command on my workstation (Which is running ubuntu noble, see output).
#################
rkannoth@...nnoth-OptiPlex-7090:/mnt$ sudo ./ubuntu-rootfs/root/linux/./tools/net/ynl/pyynl/cli.py --spec ./ubuntu-rootfs/root/linux/Documentation/netlink/specs/ethtool.yaml --do rings-get --json '{"header":{"dev-index":
18}}'
Netlink error: No such device
nl_len = 76 (60) nl_flags = 0x300 nl_type = 2
error: -19
extack: {'msg': 'no device matches ifindex', 'bad-attr': '.header.dev-index'}
#################
-Ratheesh
Powered by blists - more mailing lists