diff options
author | John Estabrook <jestabro@vyos.io> | 2023-12-12 08:30:51 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-12 08:30:51 -0600 |
commit | 138fe52743703aa771f388da026816c671e7d25b (patch) | |
tree | ddcf21bc559a463b20b977027c3161a0c8db30cb /python/vyos/configtree.py | |
parent | f82f1ca1bc55fe75aa6495fe89dbe597055742b5 (diff) | |
parent | 7e4caa118692d9b6fd798783596bd018f805e5eb (diff) | |
download | vyos-1x-138fe52743703aa771f388da026816c671e7d25b.tar.gz vyos-1x-138fe52743703aa771f388da026816c671e7d25b.zip |
Merge pull request #2608 from jestabro/load-config-module
load-config: T5815: provide a variety of load config methods
Diffstat (limited to 'python/vyos/configtree.py')
-rw-r--r-- | python/vyos/configtree.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/python/vyos/configtree.py b/python/vyos/configtree.py index 09cfd43d3..d048901f0 100644 --- a/python/vyos/configtree.py +++ b/python/vyos/configtree.py @@ -160,6 +160,9 @@ class ConfigTree(object): def _get_config(self): return self.__config + def get_version_string(self): + return self.__version + def to_string(self, ordered_values=False): config_string = self.__to_string(self.__config, ordered_values).decode() config_string = "{0}\n{1}".format(config_string, self.__version) |