diff options
| author | Lubomir Rintel <lkundrak@v3.sk> | 2016-06-22 18:25:48 +0200 |
|---|---|---|
| committer | Lubomir Rintel <lkundrak@v3.sk> | 2016-06-29 20:28:42 +0200 |
| commit | 8b4494598d04b6754a69463a4dc7274fdff8763f (patch) | |
| tree | 63e52164203e3b9020d9ec821d46618c1c9f0a8b /clients/cli/nmcli-completion | |
| parent | a0bb8cd6cb3fdeaf2a1259c5127278443e0f4f1b (diff) | |
| download | NetworkManager-lr/device-modify.tar.gz | |
cli/device: add modify commandlr/device-modify
It modifies the applied connection using the Reapply API.
Diffstat (limited to 'clients/cli/nmcli-completion')
| -rw-r--r-- | clients/cli/nmcli-completion | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/clients/cli/nmcli-completion b/clients/cli/nmcli-completion index bb47f2d6ae..e78ab85c82 100644 --- a/clients/cli/nmcli-completion +++ b/clients/cli/nmcli-completion @@ -1184,7 +1184,7 @@ _nmcli() ;; d|de|dev|devi|devic|device) if [[ ${#words[@]} -eq 2 ]]; then - _nmcli_compl_COMMAND "$command" status show connect reapply disconnect delete monitor wifi set lldp + _nmcli_compl_COMMAND "$command" status show connect reapply modify disconnect delete monitor wifi set lldp elif [[ ${#words[@]} -gt 2 ]]; then case "$command" in s|st|sta|stat|statu|status) @@ -1199,6 +1199,14 @@ _nmcli() _nmcli_compl_COMMAND_nl "${words[2]}" "$(_nmcli_dev_status DEVICE)" fi ;; + mod|modi|modif|modify) + if [[ ${#words[@]} -eq 3 ]]; then + _nmcli_compl_COMMAND_nl "${words[2]}" "$(nmcli --complete-args device modify "" 2>/dev/null)" + else + _nmcli_array_delete_at words 0 1 + _nmcli_list_nl "$(nmcli --complete-args device modify "${words[@]}" 2>/dev/null)" + fi + ;; d|di|dis|disc|disco|discon|disconn|disconne|disconnec|disconnect| \ de|del|dele|delet|delete| \ m|mo|mon|moni|monit|monito|monitor) |
