Skip to content

Commit b6aa408

Browse files
committed
Pass type parameter to yanglint
The type parameter can be used to distinguish between instance data meant to represent the operational state datastore from data meant for configuration via e.g. NETCONF. Signed-off-by: Florian Kauer <florian.kauer@linutronix.de>
1 parent f5df834 commit b6aa408

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/validate.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ def run_testcase(test):
1616
yang_files.append(model["file"])
1717

1818
## Run yanglint
19-
command = ["yanglint"] + yang_files + [test["instance"]]
19+
command = ["yanglint"]
20+
21+
if "type" in test:
22+
command += ["-t", test["type"]]
23+
24+
command += yang_files + [test["instance"]]
2025

2126
print(" ".join(command))
2227

0 commit comments

Comments
 (0)