Page MenuHomeVyOS Platform

Extend list_interfaces.py to support multiple interface types
Closed, ResolvedPublicFEATURE 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
Is it a breaking change?
Perfectly compatible
Issue type
Improvement (missing useful functionality)

Related Objects

StatusSubtypeAssignedTask
ResolvedFEATURE REQUESTc-po
ResolvedFEATURE REQUESTdmbaturin

Event Timeline

c-po triaged this task as Normal priority.Oct 17 2018, 6:51 PM
c-po created this task.
dmbaturin set Is it a breaking change? to Perfectly compatible.
dmbaturin set Issue type to Improvement (missing useful functionality).