tools: ynl: fix enum-as-flags in the generic CLI
Status from this message: This series was applied to netdev/net.git (main)
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 All 2 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | tools: ynl: move the enum classes to shared codetools/ tools/ tools/ | +121 | 0 replies | Applied |
| 2/2 | tools: ynl: fix enum-as-flags in the generic CLItools/ tools/ | +7 | 0 replies | Applied |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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