mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
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: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
eaf317e7d2
commit
4e4480e89c
3 changed files with 6 additions and 1 deletions
|
@ -6,7 +6,7 @@ import json
|
|||
import pprint
|
||||
import time
|
||||
|
||||
from ynl import YnlFamily
|
||||
from lib import YnlFamily
|
||||
|
||||
|
||||
def main():
|
5
tools/net/ynl/lib/__init__.py
Normal file
5
tools/net/ynl/lib/__init__.py
Normal file
|
@ -0,0 +1,5 @@
|
|||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
from .ynl import YnlFamily
|
||||
|
||||
__all__ = ["YnlFamily"]
|
Loading…
Add table
Add a link
Reference in a new issue