Page MenuHomeVyOS Platform

Revisit storing syntax version of interface definitions in XML file
Closed, ResolvedPublic

Description

In T1962, the possibility of storing the component syntax version within the XML file was introduced. It has remained underadvertised and underused due to a question of convenience: the mapping

component <~~> interface definition file

is not 1-to-1, nor should it be (for example system <~> system-*.xml.in; interfaces <~> interface-*.xml.in). This raises the question of in which file to include the XML syntax version element, so as to be least burdensome on the developer. In this task, we will revisit the matter, so as to finally move the component syntax version out of vyatta-cfg-system.

Details

Version
vyos-1,4
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Unspecified (please specify)

Event Timeline

jestabro triaged this task as Normal priority.
jestabro created this object in space S1 VyOS Public.
jestabro updated the task description. (Show Details)

The suggested resolution is to define an include file with the syntaxVersion element. The syntaxVersion element contains the component name and version number; the including interface definition file corresponds to the conf_mode script. Hence, this defines a mapping

conf_mode script --> component name. In addition, the workflow is not burdensome:

old workflow: update interface definition/conf mode script; write migration script; update vyatta-cfg-system curver_data
new workflow: update interface definition/conf mode script; write migration script; update version number in interface_definitions/include/version

Al the processing scripts are already in place in 1.3/1.4. An example is here:

https://github.com/vyos/vyos-1x/compare/current...jestabro:syntaxVersion

jestabro changed the task status from Open to In progress.Aug 4 2021, 4:37 PM
jestabro added a project: VyOS 1.3 Equuleus.
jestabro moved this task from Open to Finished on the VyOS 1.4 Sagitta board.
dmbaturin set Issue type to Unspecified (please specify).
jestabro changed the task status from Unknown Status to Resolved.Apr 11 2024, 7:26 PM