Page MenuHomeVyOS Platform

Use unique interface name prefix for each tunnel type
Open, LowPublicFEATURE REQUEST

Description

Currently, whatever the encapsulation used, tunnel interfaces are called tunX. This is problematic.

For all other interfaces, the name can be used to figure out the python interface class that should be used to manipulate the underlying Linux interface.
GRE and SIT interfaces are not the same and are not built the same way but both are called tunX.

Having a unique name prefix per interface type is a good feature to have as it make the code generic and consistent.

I would therefore suggest that tunnels should have different names for different interfaces, removing the need for the “encapsulation” keyword.

The first step could be to not allow the creation of tunnel interfaces with the name tun and infer the encapsulation from the name, with perhaps a view down the line to move each tunnel type to a unique "interface" section.

Details

Version
-
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Unspecified (please specify)

Event Timeline

dmbaturin subscribed.

It may be a good idea, but it sure needs a serious and broad discussion. I'm moving it to 1.4 for now, though we may move it back if we have time before the freeze.

dmbaturin renamed this task from change the syntax for tunnel interfaces to Use unique interface name prefix for each tunnel type.Jun 25 2020, 5:39 AM
Viacheslav edited a custom field.
dmbaturin set Issue type to Unspecified (please specify).
syncer edited projects, added VyOS Rolling; removed Restricted Project, VyOS 1.5 Circinus.Oct 28 2024, 6:50 AM
vyosbot added a project: Restricted Project.Oct 29 2024, 6:09 AM