From 8f2eac38f1b7bb132bf7782596899315745a713a Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Wed, 25 Jun 2025 18:15:29 +0100 Subject: 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 --- python/vyos/xml_ref/generate_op_cache.py | 1 + 1 file changed, 1 insertion(+) (limited to 'python') 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') -- cgit v1.2.3