Page MenuHomeVyOS Platform

reference_tree: catch parse error on non-transcluded files
Closed, ResolvedPublicBUG

Description

The addition of the reference_tree parsing of XML interface-definitions (T5194) was not correctly catching/reporting some parsing errors, for example, when incorrectly attempting to parse the individual includes files (*.xml.in) before 'transcluding' them to the merged results. It will now report line number and file name for low-level parsing errors. This was a simple mistake in the pattern matching check of errors defined in the XML parsing library being used.

Details

Difficulty level
Normal (likely a few hours)
Version
vyos-1.4
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)