]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tools: ynl: cli: Parse nested attributes in --list-attrs output
authorGal Pressman <gal@nvidia.com>
Tue, 18 Nov 2025 14:32:07 +0000 (16:32 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 20 Nov 2025 14:43:04 +0000 (15:43 +0100)
commitbc1bc1b357cdae75d17ecde0aabe1b95ce08c7a5
treeef0a6d2e6916a864d752cd257ac19412d76e31d2
parent2a2d5a3392b63ef5141c158117dba4f3b9b3ac22
tools: ynl: cli: Parse nested attributes in --list-attrs output

Enhance the --list-attrs option to recursively display nested attributes
instead of just showing "nest" as the type.
Nested attributes now show their attribute set name and expand to
display their contents.

  # ./cli.py --family ethtool --list-attrs rss-get
  [..]
  Do request attributes:
    - header: nest -> header
        - dev-index: u32
        - dev-name: string
        - flags: u32 (enum: header-flags)
        - phy-index: u32
    - context: u32
  [..]

Reviewed-by: Nimrod Oren <noren@nvidia.com>
Signed-off-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Link: https://patch.msgid.link/20251118143208.2380814-3-gal@nvidia.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/net/ynl/pyynl/cli.py