Re: [RFC net-next 3/4] ynl: add a sample python library
From: Jakub Kicinski <kuba@kernel.org>
Date: 2022-08-12 23:07:43
Also in:
linux-doc
From: Jakub Kicinski <kuba@kernel.org>
Date: 2022-08-12 23:07:43
Also in:
linux-doc
On Fri, 12 Aug 2022 16:42:53 +0100 Edward Cree wrote:
quoted
It would be great if python had standard module for netlink. Then your code could just (re)use that. Something like mnl but for python.There's pyroute2, that seemed alright when I used it for something a few years back, and I think it has the pieces you need. https://pyroute2.org/
I saw that and assumed that its true to its name and only supports RTNL :( I'll reach out to Peter the maintainer for his thoughts. This patch was meant as a sample, I kept trying to finish up the C codegen for a week and it still didn't feel presentable enough for the RFC. In practice I'd rather leave writing the language specific libs to the experts.