summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2025-06-25 18:15:29 +0100
committerDaniil Baturin <daniil@baturin.org>2025-06-26 15:27:58 +0100
commit8f2eac38f1b7bb132bf7782596899315745a713a (patch)
tree7e760a1a2cc0407a0a30579a589ef0f4b53ac4c0 /python
parent195651aababa371d67c6e1608094891227a5bd18 (diff)
downloadvyos-1x-8f2eac38f1b7bb132bf7782596899315745a713a.tar.gz
vyos-1x-8f2eac38f1b7bb132bf7782596899315745a713a.zip
build: T7578: fail the package build if there are non-unique op mode nodes
to ensure that the JSON cache is usable for command lookup
Diffstat (limited to 'python')
-rwxr-xr-xpython/vyos/xml_ref/generate_op_cache.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/vyos/xml_ref/generate_op_cache.py b/python/vyos/xml_ref/generate_op_cache.py
index 117b080b4..29697dc58 100755
--- a/python/vyos/xml_ref/generate_op_cache.py
+++ b/python/vyos/xml_ref/generate_op_cache.py
@@ -280,6 +280,7 @@ def main():
else:
print('Found the following duplicate paths:\n')
print(out)
+ sys.exit(1)
with open(op_ref_cache, 'w') as f:
f.write('from vyos.xml_ref.op_definition import NodeData\n')