tools: ynl: move the enum classes to shared code
authorJakub Kicinski <kuba@kernel.org>
Wed, 8 Mar 2023 00:39:22 +0000 (16:39 -0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 9 Mar 2023 07:28:21 +0000 (23:28 -0800)
commit6517a60b0307abdcca80133c237551cc7cc8e6ae
tree9b7ad3981c2143d93ddd101ef4b86b78af472a4b
parent649c15c7691e9b13cbe9bf6c65c365350e056067
tools: ynl: move the enum classes to shared code

Move bulk of the EnumSet and EnumEntry code to shared
code for reuse by cli.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/lib/__init__.py
tools/net/ynl/lib/nlspec.py
tools/net/ynl/ynl-gen-c.py