Skip to content

tools: ynl: fix enum-as-flags in the generic CLI

Jakub Kicinski netdev 1 version Applied

Status from this message: This series was applied to netdev/net.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2tools: ynl: move the enum classes to shared codetools/net/ynl/lib/__init__.py tools/net/ynl/lib/nlspec.py tools/net/ynl/ynl-gen-c.py+121 -890 repliesApplied
2/2tools: ynl: fix enum-as-flags in the generic CLItools/net/ynl/lib/nlspec.py tools/net/ynl/lib/ynl.py+7 -90 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net 0/2] tools: ynl: fix enum-as-flags in the generic CLI

The CLI needs to use proper classes when looking at Enum definitions rather than interpreting the YAML spec ad-hoc, because we have more than on format of the definition supported.

Jakub Kicinski (2):
tools: ynl: move the enum classes to shared code
tools: ynl: fix enum-as-flags in the generic CLI

 tools/net/ynl/lib/__init__.py |   7 ++-
 tools/net/ynl/lib/nlspec.py   |  99 +++++++++++++++++++++++++++++++
 tools/net/ynl/lib/ynl.py      |   9 +--
 tools/net/ynl/ynl-gen-c.py    | 107 +++++++---------------------------
 4 files changed, 126 insertions(+), 96 deletions(-)
Signature · 1 line
2.39.2