On Wed, 13 Mar 2024 23:07:22 -0700 Rahul Rameshbabu wrote: > What's your expectation for how the request structure would look like? I > have tried the following. > > if args.show_time_stamping: > req = { > 'header': { > 'flags': 'stats', > }, > } > > if args.show_time_stamping: > req = { > 'header': { > 'flags': { > 'stats': True, > }, > }, > } > > I tried looking through the lib/ynl.py code, but I did not understand > how the 'flags' type was specifically handled. Rebased on latest net-next? I used this: ./tools/net/ynl/cli.py \ --spec Documentation/netlink/specs/ethtool.yaml \ --do fec-get --json '{"header":{"dev-index": 2, "flags": "stats"}}'