File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -177,11 +177,13 @@ _comp_cmd_ip()
177
177
_comp_compgen_available_interfaces
178
178
_comp_compgen -a -- -W ' dev scope to label dynamic
179
179
permanent tentative deprecated dadfailed temporary
180
- primary secondary up'
180
+ primary secondary up type '
181
181
elif [[ $prev == dev ]]; then
182
182
_comp_compgen_available_interfaces
183
183
elif [[ $prev == scope ]]; then
184
184
_comp_cmd_ip__iproute2_etc rt_scopes
185
+ elif [[ $prev == type ]]; then
186
+ _comp_cmd_ip__link_types " $1 "
185
187
fi
186
188
;;
187
189
* )
Original file line number Diff line number Diff line change @@ -27,6 +27,14 @@ def test_monitor(self, completion):
27
27
def test_netconf (self , completion ):
28
28
assert "show" in completion
29
29
30
+ @pytest .mark .complete (
31
+ "ip addr show type " ,
32
+ require_cmd = True ,
33
+ skipif = "ip link help 2>/dev/null; (( $? != 255 ))" ,
34
+ )
35
+ def test_addr_type (self , completion ):
36
+ assert "bridge" in completion
37
+
30
38
@pytest .mark .complete ("ip -" , require_cmd = True )
31
39
def test_options (self , completion ):
32
40
assert "-family" in completion
You can’t perform that action at this time.
0 commit comments