diff options
author | John Estabrook <jestabro@vyos.io> | 2020-10-21 14:05:46 -0500 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2020-10-21 17:44:16 -0500 |
commit | 8bf1ba34d2fd4ee59390d08be397a850c552fcd2 (patch) | |
tree | f5539cf92a3d824c2d2360cf0af7076438f551cd /python/vyos | |
parent | 3394ab8d2941c90e8b36d84515453e8758842cfc (diff) | |
download | vyos-1x-8bf1ba34d2fd4ee59390d08be397a850c552fcd2.tar.gz vyos-1x-8bf1ba34d2fd4ee59390d08be397a850c552fcd2.zip |
configsession: T3004: add call to config load script
Diffstat (limited to 'python/vyos')
-rw-r--r-- | python/vyos/configsession.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/python/vyos/configsession.py b/python/vyos/configsession.py index 6e4214360..82b9355a3 100644 --- a/python/vyos/configsession.py +++ b/python/vyos/configsession.py @@ -27,6 +27,7 @@ COMMIT = '/opt/vyatta/sbin/my_commit' DISCARD = '/opt/vyatta/sbin/my_discard' SHOW_CONFIG = ['/bin/cli-shell-api', 'showConfig'] LOAD_CONFIG = ['/bin/cli-shell-api', 'loadFile'] +MIGRATE_LOAD_CONFIG = ['/usr/libexec/vyos/vyos-load-config.py'] SAVE_CONFIG = ['/opt/vyatta/sbin/vyatta-save-config.pl'] INSTALL_IMAGE = ['/opt/vyatta/sbin/install-image', '--url'] REMOVE_IMAGE = ['/opt/vyatta/bin/vyatta-boot-image.pl', '--del'] @@ -176,6 +177,10 @@ class ConfigSession(object): out = self.__run_command(LOAD_CONFIG + [file_path]) return out + def migrate_and_load_config(self, file_path): + out = self.__run_command(MIGRATE_LOAD_CONFIG + [file_path]) + return out + def save_config(self, file_path): out = self.__run_command(SAVE_CONFIG + [file_path]) return out |