diff options
author | John Estabrook <jestabro@vyos.io> | 2022-02-16 11:31:23 -0600 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2022-02-16 16:26:25 -0600 |
commit | 3795fdba8edf8e81298370d6cd8d81a779ae2997 (patch) | |
tree | df234f88b0734d33eb82a863a75c1364fc9377af /python/vyos/xml/__init__.py | |
parent | f076f9f4cf6e6b7d89eada9f5d59bacea0f3af72 (diff) | |
download | vyos-1x-3795fdba8edf8e81298370d6cd8d81a779ae2997.tar.gz vyos-1x-3795fdba8edf8e81298370d6cd8d81a779ae2997.zip |
xml: T3474: add component version include files
Add the include files containing the syntaxVersion element defining the
version of the respective component; these files are included by the top
level file 'xml-component-versions.xml.in'. Processing of these elements
was previously added to the python xml lib in commit 40f5359d. This will
replace the use of 'curver_DATA' in vyatta-cfg-system and other legacy
packages.
Diffstat (limited to 'python/vyos/xml/__init__.py')
-rw-r--r-- | python/vyos/xml/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/vyos/xml/__init__.py b/python/vyos/xml/__init__.py index e0eacb2d1..6db446a40 100644 --- a/python/vyos/xml/__init__.py +++ b/python/vyos/xml/__init__.py @@ -46,8 +46,8 @@ def is_tag(lpath): def is_leaf(lpath, flat=True): return load_configuration().is_leaf(lpath, flat) -def component_versions(): - return load_configuration().component_versions() +def component_version(): + return load_configuration().component_version() def defaults(lpath, flat=False): return load_configuration().defaults(lpath, flat) |