Allow optional Q-in-Q role on VLAN Groups #10591

Open
opened 2025-12-29 21:33:29 +01:00 by adam · 0 comments
Owner

Originally created by @sleepinggenius2 on GitHub (Dec 30, 2024).

NetBox version

v4.2-beta1

Feature type

Data model extension

Triage priority

N/A

Proposed functionality

Copy the qinq_role field from the Vlan model to the VlanGroup model. Add validation to only allow VLANs of the same role in the group.

If the Q-in-Q role is empty, I think it makes sense to allow VLANs with any Q-in-Q role, but I could also see an argument to only allow VLANs without a Q-in-Q role set and to add an additional Q-in-Q role of "Any" or "Mixed" to the VLAN Group model to explicitly allow VLANs with non-empty Q-in-Q roles as well.

Use case

If using a VLAN Group to document the VLANs available on an ENNI, they must all be SVLANs, likewise on a UNI they must all be CVLANs, so it would be nice to have the system be able to enforce that out of the box.

Database changes

Copy the qinq_role field from the Vlan model to the VlanGroup model.

External dependencies

None

Originally created by @sleepinggenius2 on GitHub (Dec 30, 2024). ### NetBox version v4.2-beta1 ### Feature type Data model extension ### Triage priority N/A ### Proposed functionality Copy the `qinq_role` field from the `Vlan` model to the `VlanGroup` model. Add validation to only allow VLANs of the same role in the group. If the Q-in-Q role is empty, I think it makes sense to allow VLANs with any Q-in-Q role, but I could also see an argument to only allow VLANs without a Q-in-Q role set and to add an additional Q-in-Q role of "Any" or "Mixed" to the VLAN Group model to explicitly allow VLANs with non-empty Q-in-Q roles as well. ### Use case If using a VLAN Group to document the VLANs available on an ENNI, they must all be SVLANs, likewise on a UNI they must all be CVLANs, so it would be nice to have the system be able to enforce that out of the box. ### Database changes Copy the `qinq_role` field from the `Vlan` model to the `VlanGroup` model. ### External dependencies None
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10591