OPNsense Forum

Archive => 22.1 Legacy Series => Topic started by: +DS_DV+ on June 18, 2022, 12:12:10 PM

Title: VLAN Device Name changed?
Post by: +DS_DV+ on June 18, 2022, 12:12:10 PM
Hi,

last time i created vlans was 2016/17.
in the age of IoT i created a new one.
but the Device name is vlan01 instead of re0_vlan60?

what did i do wrong? How can i fix that?


with kind regards
Title: Re: VLAN Device Name changed?
Post by: Patrick M. Hausen on June 18, 2022, 05:36:20 PM
Nothing to fix. This is how it's supposed to work now. You can always add a description that fits your needs.
Title: Re: VLAN Device Name changed?
Post by: +DS_DV+ on June 18, 2022, 08:02:54 PM
but why?
there was no need for change and the old system was so much better.
the new one is just unnecessary confusing -.-
Title: Re: VLAN Device Name changed?
Post by: Patrick M. Hausen on June 18, 2022, 09:58:49 PM
The device names are limited in length and with the addition of QinQ (nested VLANs) the old scheme did not work anymore. Using a generic ID that is referenced somewhere else is a common data structure in software development called normalisation. It definitely was the right thing to do.

After initial complaints the UI was instantly improved and shows all the relevant information in the Assignments section, see screenshot for an example.
Title: Re: VLAN Device Name changed?
Post by: franco on June 20, 2022, 12:45:15 PM
Quote from: +DS_DV+ on June 18, 2022, 08:02:54 PM
but why?

Why not? Or: why do such unknown but intricate technicalities get in the way of your preference? ;)


Cheers,
Franco
Title: Re: VLAN Device Name changed?
Post by: SFC on August 15, 2022, 06:30:41 PM
Quote from: franco on June 20, 2022, 12:45:15 PM
Quote from: +DS_DV+ on June 18, 2022, 08:02:54 PM
but why?

Why not? Or: why do such unknown but intricate technicalities get in the way of your preference? ;)


Cheers,
Franco


Is there a reason we can't at least have the device ID match the vlan ID by default?  That would make scripting and visual identification a lot easier and is pretty common best practice in any network I've worked on.