Skip to content

Commit

Permalink
feat(ip): Complete neigh add, del, change, replace
Browse files Browse the repository at this point in the history
  • Loading branch information
yedayak authored and scop committed May 7, 2024
1 parent 12fbdb1 commit ba80203
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion completions/ip
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,26 @@ _comp_cmd_ip()
n | neigh | neighbor | neighbour)
case $subcmd in
add | del | change | replace)
# TODO
case $prev in
lladdr)
_comp_compgen_mac_addresses
;;
nud)
_comp_cmd_ip__neigh_states "$1"
;;
dev)
_comp_compgen_available_interfaces
;;
protocol)
_comp_cmd_ip__iproute2_etc rt_protos
;;
proxy)
:
;;
*)
_comp_compgen -- -W 'lladdr nud proxy dev router use managed extern_learn protocol'
;;
esac
;;
show | flush)
case "$prev" in
Expand Down

0 comments on commit ba80203

Please sign in to comment.