diff options
author | Jakub Kicinski <kuba@kernel.org> | 2023-01-31 05:33:43 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-02-01 07:36:03 +0300 |
commit | 3aacf8281336ac57fe4a4e85fa55a68218e90b5c (patch) | |
tree | 36f719216200a299d549363e5c60dee30b096c25 /tools/net/ynl/lib/__init__.py | |
parent | 4e4480e89c47b52b3f4fbc1ddf07a7ce541f0839 (diff) | |
download | linux-3aacf8281336ac57fe4a4e85fa55a68218e90b5c.tar.xz |
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>
Diffstat (limited to 'tools/net/ynl/lib/__init__.py')
-rw-r--r-- | tools/net/ynl/lib/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/net/ynl/lib/__init__.py b/tools/net/ynl/lib/__init__.py index 0a6102758ebe..3c73f59eabab 100644 --- a/tools/net/ynl/lib/__init__.py +++ b/tools/net/ynl/lib/__init__.py @@ -1,5 +1,7 @@ # SPDX-License-Identifier: BSD-3-Clause +from .nlspec import SpecAttr, SpecAttrSet, SpecFamily, SpecOperation from .ynl import YnlFamily -__all__ = ["YnlFamily"] +__all__ = ["SpecAttr", "SpecAttrSet", "SpecFamily", "SpecOperation", + "YnlFamily"] |