summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerkin <me@erkin.party>2023-01-18 19:10:50 +0300
committererkin <me@erkin.party>2023-01-18 19:10:50 +0300
commit3d57999aae0117055921f085ad07d79ba10c4e10 (patch)
tree77498353ebdb85d6686b18ee027c0fd113e018f8
parent4448d944c3cb6a47692119c8f1e8442e82316183 (diff)
downloadvyatta-cfg-3d57999aae0117055921f085ad07d79ba10c4e10.tar.gz
vyatta-cfg-3d57999aae0117055921f085ad07d79ba10c4e10.zip
loadkey: T3506: Remove (what remains of) loadkey
-rw-r--r--etc/bash_completion.d/vyatta-cfg13
-rw-r--r--functions/interpreter/vyatta-cfg-run5
2 files changed, 0 insertions, 18 deletions
diff --git a/etc/bash_completion.d/vyatta-cfg b/etc/bash_completion.d/vyatta-cfg
index eb07616..b24055a 100644
--- a/etc/bash_completion.d/vyatta-cfg
+++ b/etc/bash_completion.d/vyatta-cfg
@@ -230,19 +230,6 @@ vyatta_loadsave_complete()
eval $restore_shopts
}
-vyatta_config_loadkey()
-{
- echo "Warning: The obsolete 'loadkey' command has been phased out."
- echo "Instead, use the op-mode command 'generate public-key-command' to generate commands for manual addition:"
- echo '$ generate public-key-command name <username> path <path-or-url>'
- echo
-}
-
-vyatta_loadkey_complete()
-{
- true
-}
-
print_commit_log ()
{
local -a array
diff --git a/functions/interpreter/vyatta-cfg-run b/functions/interpreter/vyatta-cfg-run
index 5e0ce42..b4c2ea6 100644
--- a/functions/interpreter/vyatta-cfg-run
+++ b/functions/interpreter/vyatta-cfg-run
@@ -34,7 +34,6 @@ _vyatta_cfg_cmds=( "confirm" \
"edit" \
"exit" \
"load" \
- "loadkey" \
"merge" \
"rename" \
"rollback" \
@@ -54,7 +53,6 @@ _vyatta_cfg_helps=( \
"Edit a sub-element" \
"Exit from this configuration level" \
"Load configuration from a file and replace running configuration" \
- "Load user SSH key from a file" \
"Load configuration from a file and merge running configuration" \
"Rename a configuration element" \
"Rollback to a prior config revision (requires reboot)" \
@@ -570,7 +568,6 @@ vyatta_cfg_run ()
compare) vyatta_config_compare "${@:2}";;
save) vyatta_config_save "${@:2}" ;;
merge) vyatta_config_merge "${@:2}" ;;
- loadkey) vyatta_config_loadkey "${@:2}";;
*) vyatta_cfg_cmd $fcmd "${@:2}" ;; # commands requiring path expansion must go through here
esac
}
@@ -612,8 +609,6 @@ _vyatta_cfg_init ()
complete -F vyatta_single_word_complete ${cmd:0:$pos} ;;
run)
complete -F vyatta_run_complete ${cmd:0:$pos} ;;
- loadkey)
- complete -F vyatta_loadkey_complete ${cmd:0:$pos} ;;
compare)
complete -F vyatta_compare_complete ${cmd:0:$pos} ;;
rollback)