Skip to content

Commit

Permalink
T6718: use vy_set/delete in place of my_set/delete
Browse files Browse the repository at this point in the history
  • Loading branch information
jestabro committed Oct 24, 2024
1 parent a428d47 commit f537a26
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions functions/interpreter/vyatta-cfg-run
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,12 @@ vyatta_cfg_cmd_run ()
vyatta_config_edit "${@:2}"
elif [[ "$cmd" == "show" ]]; then
vyatta_config_show "${@:2}"
elif [[ "$cmd" == "set" ]]; then
cmd="/usr/libexec/vyos/vyconf/vy_set"
output=$($cmd "${@:2}")
elif [[ "$cmd" == "delete" ]]; then
cmd="/usr/libexec/vyos/vyconf/vy_delete"
output=$($cmd "${@:2}")
else
cmd="/opt/vyatta/sbin/my_$cmd"
output=$($cmd "${@:2}")
Expand Down

0 comments on commit f537a26

Please sign in to comment.