OSDN Git Service

tools: ynl: add an object hierarchy to represent parsed spec
authorJakub Kicinski <kuba@kernel.org>
Tue, 31 Jan 2023 02:33:43 +0000 (18:33 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 1 Feb 2023 04:36:03 +0000 (20:36 -0800)
commit3aacf8281336ac57fe4a4e85fa55a68218e90b5c
tree36f719216200a299d549363e5c60dee30b096c25
parent4e4480e89c47b52b3f4fbc1ddf07a7ce541f0839
tools: ynl: add an object hierarchy to represent parsed spec

There's a lot of copy and pasting going on between the "cli"
and code gen when it comes to representing the parsed spec.
Create a library which both can use.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/lib/__init__.py
tools/net/ynl/lib/nlspec.py [new file with mode: 0644]