tools: ynl: move the cli and netlink code around
authorJakub Kicinski <kuba@kernel.org>
Tue, 31 Jan 2023 02:33:42 +0000 (18:33 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 1 Feb 2023 04:36:03 +0000 (20:36 -0800)
commit4e4480e89c47b52b3f4fbc1ddf07a7ce541f0839
tree915d37e07103516040017747f8c9df170e5ffb79
parenteaf317e7d2bbb04486c9842aea9be1e94bd416ed
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>
tools/net/ynl/cli.py [moved from tools/net/ynl/samples/cli.py with 97% similarity]
tools/net/ynl/lib/__init__.py [new file with mode: 0644]
tools/net/ynl/lib/ynl.py [moved from tools/net/ynl/samples/ynl.py with 100% similarity]