Add Tenancy Support to VLAN Group #18296
Labels
status: needs triage
This issue is awaiting triage by a maintainer
type: feature
Introduction of new functionality to the application
NetBox version
v4.2-beta1
Feature type
Data model extension
Triage priority
N/A
Proposed functionality
Add the
tenant
field to theVLANGroup
model to support tenancy. Ideally, show the tenant with an "*" appended in theTenant
column on theVLAN
table for aVLAN
that is not explicitly assigned to aTenant
, but inherited from its group, just like is done with theIPAddress
table when itsPrefix
has an assignedTenant
.Use case
The
VLAN
model already supports tenancy, so it's curious why theVLANGroup
model does not. When using aVLANGroup
to document the VLANs on an ENNI, it would be useful to also associate the group to aTenant
and not just theVLAN
members under it. This would also allow for additional validation opportunities, like it could be enforced that theTenant
set on theVLAN
andVLANGroup
match (I think it makes sense to leave this as a custom validation opportunity). We added a custom field for this in our environment today, but that has the limitation that when you go to the details page for aTenant
, it is not listed under the related objects.Database changes
Add nullable
tenant
ForeignKey totenancy.Tenant
.External dependencies
None
The text was updated successfully, but these errors were encountered: