On Mon, Sep 7, 2020 at 10:22 PM Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote: > > On Mon, 2020-09-07 at 21:52 +0530, Krishna Chaitanya wrote: > > > > FYI, We have open-sourced our internal library which takes care of abstracting > > Netlink attributes, just need to define commands and event messages in JSON, > > https://github.com/bluwireless/py-genl. The initial port of all > > messages might be an effort but extending it would be easy. > > Nice. > > I wonder if the netlink policy export I wrote for the kernel could be > used to generate attribute descriptions? Even if it means just running a > tool in a latest kernel VM to do it. Can you please point me to it? But yes, auto-generating those should be handy. Probably can pick up the header file from sources in kernel.org instead of booting into a VM (depending on how your tools work)?