Page MenuHomePhabricator

Extend list_interfaces.py to support multiple interface types
Open, NormalPublicFEATURE REQUEST

Description

Currently the helper script /usr/libexec/vyos/completion/list_interfaces.py only supports a single interface type

$ /usr/libexec/vyos/completion/list_interfaces.py
lo eth0 eth1 gre0 gretap0 erspan0 tun666
$ /usr/libexec/vyos/completion/list_interfaces.py -t ethernet
eth0 eth1

but specifying two types results in no result at all:

$ /usr/libexec/vyos/completion/list_interfaces.py -t ethernet -t bridge

but the expected result would be:

$ /usr/libexec/vyos/completion/list_interfaces.py -t ethernet -t bridge
eth0 eth1 br0 br1

Details

Difficulty level
Easy (less than an hour)
Version
-
Why the issue appeared?
Will be filled on close