File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -387,6 +387,21 @@ _comp_cmd_ip()
387
387
esac
388
388
;;
389
389
390
+ netconf)
391
+ case $subcmd in
392
+ show)
393
+ if (( cword == subcword + 1 )) ; then
394
+ _comp_compgen -- -W ' dev'
395
+ elif [[ $prev == dev ]]; then
396
+ _comp_compgen_available_interfaces
397
+ fi
398
+ ;;
399
+ * )
400
+ _comp_compgen -- -W ' show'
401
+ ;;
402
+ esac
403
+ ;;
404
+
390
405
xfrm)
391
406
case $subcmd in
392
407
state | policy | monitor)
Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ def test_monitor(self, completion):
23
23
assert "neigh" in completion
24
24
assert "all" in completion
25
25
26
+ @pytest .mark .complete ("ip netconf " )
27
+ def test_netconf (self , completion ):
28
+ assert "show" in completion
29
+
26
30
@pytest .mark .complete ("ip -" , require_cmd = True )
27
31
def test_options (self , completion ):
28
32
assert "-family" in completion
You can’t perform that action at this time.
0 commit comments