Commit 4e4480e8 authored by Jakub Kicinski's avatar Jakub Kicinski

tools: ynl: move the cli and netlink code around

Move the CLI code out of samples/ and the library part
of it into tools/net/ynl/lib/. This way we can start
sharing some code with the code gen.

Initially I thought that code gen is too C-specific to
share anything but basic stuff like calculating values
for enums can easily be shared.
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent eaf317e7
...@@ -6,7 +6,7 @@ import json ...@@ -6,7 +6,7 @@ import json
import pprint import pprint
import time import time
from ynl import YnlFamily from lib import YnlFamily
def main(): def main():
......
# SPDX-License-Identifier: BSD-3-Clause
from .ynl import YnlFamily
__all__ = ["YnlFamily"]
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment