Skip to content

Commit

Permalink
save-config: T4292: use vyos-save-config.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jestabro committed Aug 22, 2023
1 parent 7321669 commit 1dd86e0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ src_my_cli_shell_api_SOURCES = src/cli_shell_api.cpp

sbin_SCRIPTS = scripts/vyatta-cfg-cmd-wrapper
sbin_SCRIPTS += scripts/priority.pl
sbin_SCRIPTS += scripts/vyatta-save-config.pl
sbin_SCRIPTS += scripts/vyatta-cfg-notify
sbin_SCRIPTS += scripts/vyatta-log-commit.pl
sbin_SCRIPTS += scripts/vyos-user-precommit-hooks.sh
Expand Down
2 changes: 1 addition & 1 deletion functions/interpreter/vyatta-cfg-run
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ vyatta_config_save ()
reset_edit_level
# transform individual args into quoted strings
local arg=''
local save_cmd="${vyatta_sbindir}/vyatta-save-config.pl"
local save_cmd="${vyos_libexec_dir}/vyos-save-config.py"
for arg in "$@"; do
save_cmd+=" '$arg'"
done
Expand Down
2 changes: 1 addition & 1 deletion functions/wrapper/script-template
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function save ()
reset_edit_level
# transform individual args into quoted strings
local arg=''
local save_cmd="${vyatta_sbindir}/vyatta-save-config.pl"
local save_cmd="${vyos_libexec_dir}/vyos-save-config.py"
for arg in "$@"; do
save_cmd+=" '$arg'"
done
Expand Down
2 changes: 1 addition & 1 deletion scripts/vyatta-cfg-cmd-wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ case "$1" in
exec ${vyatta_sbindir}/my_commit
;;
save)
exec ${vyatta_sbindir}/vyatta-save-config.pl "${@:2}"
exec ${vyos_libexec_dir}/vyos-save-config.py "${@:2}"
;;
load)
exec ${vyos_libexec_dir}/vyos-load-config.py "${@:2}"
Expand Down

0 comments on commit 1dd86e0

Please sign in to comment.