From 8bf1ba34d2fd4ee59390d08be397a850c552fcd2 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Wed, 21 Oct 2020 14:05:46 -0500 Subject: configsession: T3004: add call to config load script --- python/vyos/configsession.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'python/vyos/configsession.py') 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 -- cgit v1.2.3