diff options
author | John Estabrook <jestabro@vyos.io> | 2022-03-08 11:48:29 -0600 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2022-03-08 11:48:29 -0600 |
commit | c4d389488970c8510200cac96a67182e9333b891 (patch) | |
tree | 9e29d3d5497ff116f8be559517e3078774227629 /python/vyos/config.py | |
parent | 534f677d36285863decb2cdff179687b4fd690cb (diff) | |
download | vyos-1x-c4d389488970c8510200cac96a67182e9333b891.tar.gz vyos-1x-c4d389488970c8510200cac96a67182e9333b891.zip |
save-config: T4292: rewrite vyatta-save-config.pl to Python
Diffstat (limited to 'python/vyos/config.py')
-rw-r--r-- | python/vyos/config.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/python/vyos/config.py b/python/vyos/config.py index a5c1ad122..829167820 100644 --- a/python/vyos/config.py +++ b/python/vyos/config.py @@ -93,6 +93,11 @@ class Config(object): (self._running_config, self._session_config) = self._config_source.get_configtree_tuple() + def get_config_tree(self, effective=False): + if effective: + return self._running_config + return self._session_config + def _make_path(self, path): # Backwards-compatibility stuff: original implementation used string paths # libvyosconfig paths are lists, but since node names cannot contain whitespace, |