aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/lib/py/ynl.py
diff options
context:
space:
mode:
authorPaolo Abeni <[email protected]>2024-10-09 08:09:57 +0000
committerJakub Kicinski <[email protected]>2024-10-10 15:30:23 +0000
commitb3ea416419c83ba4a042163f17e0fd8bac417f1a (patch)
tree9853a418779269e8c9c509849872aff22a9d49b5 /tools/testing/selftests/net/lib/py/ynl.py
parentnet-shapers: implement cap validation in the core (diff)
downloadkernel-b3ea416419c83ba4a042163f17e0fd8bac417f1a.tar.gz
kernel-b3ea416419c83ba4a042163f17e0fd8bac417f1a.zip
testing: net-drv: add basic shaper test
Leverage a basic/dummy netdevsim implementation to do functional coverage for NL interface. Reviewed-by: Jiri Pirko <[email protected]> Signed-off-by: Paolo Abeni <[email protected]> Link: https://patch.msgid.link/43092afbf38365c796088bf8fc155e523ab434ae.1728460186.git.pabeni@redhat.com Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/ynl.py')
-rw-r--r--tools/testing/selftests/net/lib/py/ynl.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/lib/py/ynl.py b/tools/testing/selftests/net/lib/py/ynl.py
index 1ace58370c06..a0d689d58c57 100644
--- a/tools/testing/selftests/net/lib/py/ynl.py
+++ b/tools/testing/selftests/net/lib/py/ynl.py
@@ -47,3 +47,8 @@ class NetdevFamily(YnlFamily):
def __init__(self):
super().__init__((SPEC_PATH / Path('netdev.yaml')).as_posix(),
schema='')
+
+class NetshaperFamily(YnlFamily):
+ def __init__(self):
+ super().__init__((SPEC_PATH / Path('net_shaper.yaml')).as_posix(),
+ schema='')