From 9e74ad7ef0c043bc7bd1fa14b6708cc11ab3bc5c Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Tue, 1 Oct 2019 11:31:42 -0500 Subject: T1424: Rewrite the config load script --- etc/bash_completion.d/vyatta-cfg | 16 ++++++++-------- functions/interpreter/vyatta-cfg-run | 2 +- functions/wrapper/script-template | 2 +- scripts/vyatta-cfg-cmd-wrapper | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/etc/bash_completion.d/vyatta-cfg b/etc/bash_completion.d/vyatta-cfg index cf72330..a2c3332 100755 --- a/etc/bash_completion.d/vyatta-cfg +++ b/etc/bash_completion.d/vyatta-cfg @@ -192,14 +192,14 @@ vyatta_loadsave_complete() echo echo "Possible completions:" if [ "$command" = "load" ]; then - echo -e " \t\t\t\tLoad from system config file" - echo -e " \t\t\t\tLoad from file on local machine" - echo -e " scp://:@/\tLoad from file on remote machine" - echo -e " sftp://:@/\tLoad from file on remote machine" - echo -e " ftp://:@/\tLoad from file on remote machine" - echo -e " http:///\t\t\tLoad from file on remote machine" - echo -e " https:///\t\t\tLoad from file on remote machine" - echo -e " tftp:///\t\t\tLoad from file on remote machine" + echo -e " \t\t\t\t\tLoad from system config file" + echo -e " \t\t\t\t\tLoad from file on local machine" + echo -e " scp://[:]@/\t\tLoad from file on remote machine" + echo -e " sftp://[:]@/\tLoad from file on remote machine" + echo -e " http:///\t\t\t\tLoad from file on remote machine" + echo -e " https:///\t\t\t\tLoad from file on remote machine" + echo -e " ftp://[:]@/\t\tLoad from file on remote machine" + echo -e " tftp:///\t\t\t\tLoad from file on remote machine" elif [ "$command" = "merge" ]; then echo -e " \t\t\t\t\tMerge from file on local machine" echo -e " scp://[:]@/\t\tMerge from file on remote machine" diff --git a/functions/interpreter/vyatta-cfg-run b/functions/interpreter/vyatta-cfg-run index a274e24..3ec3d6f 100644 --- a/functions/interpreter/vyatta-cfg-run +++ b/functions/interpreter/vyatta-cfg-run @@ -229,7 +229,7 @@ vyatta_config_load () fi # return to top level. reset_edit_level - ${vyatta_sbindir}/vyatta-load-config.pl "$@" + ${vyos_libexec_dir}/vyos-load-config.py "$@" } vyatta_config_merge () diff --git a/functions/wrapper/script-template b/functions/wrapper/script-template index 51cb2c0..f88f410 100644 --- a/functions/wrapper/script-template +++ b/functions/wrapper/script-template @@ -108,7 +108,7 @@ function load () fi # return to top level. reset_edit_level - ${vyatta_sbindir}/vyatta-load-config.pl "$@" + ${vyos_libexec_dir}/vyos-load-config.py "$@" } function save () diff --git a/scripts/vyatta-cfg-cmd-wrapper b/scripts/vyatta-cfg-cmd-wrapper index 952112f..896f7ed 100755 --- a/scripts/vyatta-cfg-cmd-wrapper +++ b/scripts/vyatta-cfg-cmd-wrapper @@ -81,7 +81,7 @@ case "$1" in exec ${vyatta_sbindir}/vyatta-save-config.pl "${@:2}" ;; load) - exec ${vyatta_sbindir}/vyatta-load-config.pl "${@:2}" + exec ${vyos_libexec_dir}/vyos-load-config.py "${@:2}" ;; rule-rename) # this option is to be used for renaming firewall and nat rules only -- cgit v1.2.3