Add Tenant to Location Model #5131

Closed
opened 2025-12-29 19:24:35 +01:00 by adam · 4 comments
Owner

Originally created by @sleepinggenius2 on GitHub (Aug 3, 2021).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v2.11.10

Feature type

Data model extension

Proposed functionality

Add a Tenant field to the existing Location model.

Use case

In a colocation environment, customers can be assigned their own cages, typically containing one or more racks, as well as other items, like power panels. It would be nice to be able to create a location to represent such a cage within a site and assign racks, power panels, devices, etc. to it, while also tracking the customer assigned to that location. Racks and devices can be assigned to a tenant today, but power panels cannot, and they can all be assigned to a location. Using a site to represent this situation is cumbersome, as a lot of the fields would need to be duplicated among the site objects and it doesn't really seem right conceptually.

Database changes

Add a Tenant field to the existing Location model.

External dependencies

None

Originally created by @sleepinggenius2 on GitHub (Aug 3, 2021). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v2.11.10 ### Feature type Data model extension ### Proposed functionality Add a *Tenant* field to the existing *Location* model. ### Use case In a colocation environment, customers can be assigned their own cages, typically containing one or more racks, as well as other items, like power panels. It would be nice to be able to create a location to represent such a cage within a site and assign racks, power panels, devices, etc. to it, while also tracking the customer assigned to that location. Racks and devices can be assigned to a tenant today, but power panels cannot, and they can all be assigned to a location. Using a site to represent this situation is cumbersome, as a lot of the fields would need to be duplicated among the site objects and it doesn't really seem right conceptually. ### Database changes Add a *Tenant* field to the existing *Location* model. ### External dependencies None
adam added the status: acceptedtype: feature labels 2025-12-29 19:24:35 +01:00
adam closed this issue 2025-12-29 19:24:35 +01:00
Author
Owner

@jeremystretch commented on GitHub (Aug 4, 2021):

We already have tenancy assignment for racks and sites. Seems like it would make sense to support locations as well.

@jeremystretch commented on GitHub (Aug 4, 2021): We already have tenancy assignment for racks and sites. Seems like it would make sense to support locations as well.
Author
Owner

@sdktr commented on GitHub (Aug 6, 2021):

Let's add Region tenancy as well?

@sdktr commented on GitHub (Aug 6, 2021): Let's add Region tenancy as well?
Author
Owner

@jeremystretch commented on GitHub (Aug 6, 2021):

Regions and site groups exist above the site model in the hierarchy, and are intended to group sites. It would not make sense to assign tenants to these models. (This proposal is out of scope for this FR, anyway.)

@jeremystretch commented on GitHub (Aug 6, 2021): Regions and site groups exist above the site model in the hierarchy, and are intended to group sites. It would not make sense to assign tenants to these models. (This proposal is out of scope for this FR, anyway.)
Author
Owner

@jcralbino commented on GitHub (Sep 20, 2021):

Just found this FR when trying to add a tenant to a location...
Hope to get this soon :)

@jcralbino commented on GitHub (Sep 20, 2021): Just found this FR when trying to add a tenant to a location... Hope to get this soon :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5131