Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tools: ynl: default to --process-unknown in installed mode

We default to raising an exception when unknown attrs are found
to make sure those are noticed during development.
When YNL CLI is "installed" and used by sysadmins erroring out
is not going to be helpful. It's far more likely the user space
is older than the kernel in that case, than that some attr is
misdefined or missing.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Jakub Kicinski and committed by
David S. Miller
b06c4311 9eb73f92

+2
+2
tools/net/ynl/pyynl/cli.py
··· 113 113 spec = f"{spec_dir()}/{args.family}.yaml" 114 114 if args.schema is None and spec.startswith(sys_schema_dir): 115 115 args.schema = '' # disable schema validation when installed 116 + if args.process_unknown is None: 117 + args.process_unknown = True 116 118 else: 117 119 spec = args.spec 118 120 if not os.path.isfile(spec):