mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 02:20:12 +01:00
cli: add primary bonding option in bash completion
Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
e6fa711088
commit
f37686fba7
1 changed files with 2 additions and 1 deletions
|
|
@ -330,6 +330,7 @@ _nmcli_complete_COMMAND_ARGS()
|
|||
return 0
|
||||
fi
|
||||
;;
|
||||
primary| \
|
||||
ifname)
|
||||
if [[ "${#words[@]}" -eq 2 ]]; then
|
||||
_nmcli_list_nl "$(_nmcli_NM_devices)"
|
||||
|
|
@ -676,7 +677,7 @@ _nmcli()
|
|||
OPTIONS_MANDATORY=(dev)
|
||||
;;
|
||||
bond)
|
||||
OPTIONS_TYPED=(mode miimon downdelay updelay arp-interval arp-ip-target)
|
||||
OPTIONS_TYPED=(mode miimon downdelay updelay arp-interval arp-ip-target primary)
|
||||
;;
|
||||
bond-|bond-s|bond-sl|bond-sla|bond-slav|bond-slave)
|
||||
OPTIONS_TYPED=(master)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue