File tree Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -249,11 +249,26 @@ _comp_cmd_ip()
249
249
r | route)
250
250
case $subcmd in
251
251
list | flush | save)
252
- if [[ $prev == proto ]]; then
253
- _comp_cmd_ip__iproute2_etc rt_protos
254
- else
255
- : # TODO
256
- fi
252
+ case " $prev " in
253
+ proto)
254
+ _comp_cmd_ip__iproute2_etc rt_protos
255
+ ;;
256
+ table)
257
+ _comp_compgen -- -W ' local main default all'
258
+ ;;
259
+ scope)
260
+ _comp_cmd_ip__iproute2_etc rt_scopes
261
+ ;;
262
+ root | match | exact | vrf)
263
+ : # TODO: Can we complete vrf?
264
+ ;;
265
+ type)
266
+ _comp_compgen -- -W ' unicast local broadcast multicast throw unreachable prohibit blackhole nat'
267
+ ;;
268
+ * )
269
+ _comp_compgen -- -W ' root match exact table vrf proto type scope'
270
+ ;;
271
+ esac
257
272
;;
258
273
get)
259
274
case $prev in
You can’t perform that action at this time.
0 commit comments