Remove or replace site assignment on VLAN #11089

Open
opened 2025-12-29 21:40:10 +01:00 by adam · 1 comment
Owner

Originally created by @arthanson on GitHub (Apr 25, 2025).

NetBox version

v4.2.8

Feature type

Change to existing functionality

Proposed functionality

Remove the Site assignment on a VLAN, or replace it with a scope assignment (or assigned_object).

Use case

VLAN allows assignment to VLAN Group and Site, but VLAN Group has a scope assignment which can be to a Site. Currently you can assign to both a Site and VLAN Group at the same time which breaks UI patterns (as it is currently a tabbed interface) and requires checks if the Site Group is assigned to a different Site then the direct VLAN Site assignment.

This can also cause issues if you change a VLAN Group assignment to a different site and some of the VLANs within the group have site assignments.

Database changes

No response

External dependencies

Removal or replacement of a field in VLAN.

Originally created by @arthanson on GitHub (Apr 25, 2025). ### NetBox version v4.2.8 ### Feature type Change to existing functionality ### Proposed functionality Remove the Site assignment on a VLAN, or replace it with a scope assignment (or assigned_object). ### Use case VLAN allows assignment to VLAN Group and Site, but VLAN Group has a scope assignment which can be to a Site. Currently you can assign to both a Site and VLAN Group at the same time which breaks UI patterns (as it is currently a tabbed interface) and requires checks if the Site Group is assigned to a different Site then the direct VLAN Site assignment. This can also cause issues if you change a VLAN Group assignment to a different site and some of the VLANs within the group have site assignments. ### Database changes _No response_ ### External dependencies Removal or replacement of a field in VLAN.
Author
Owner

@pheus commented on GitHub (Apr 30, 2025):

Just a quick note - this seems closely related to #6746, which has been open for a while. It also suggests allowing VLANs (and other objects) to be assigned to locations within a site. Might be worth considering both together when looking at improvements here. Thanks!

@pheus commented on GitHub (Apr 30, 2025): Just a quick note - this seems closely related to [#6746](https://github.com/netbox-community/netbox/issues/6746), which has been open for a while. It also suggests allowing VLANs (and other objects) to be assigned to locations within a site. Might be worth considering both together when looking at improvements here. Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11089