Reintroduce the concept of rack groups #11916

Open
opened 2025-12-29 21:51:28 +01:00 by adam · 2 comments
Owner

Originally created by @jeremystretch on GitHub (Dec 10, 2025).

NetBox version

v4.4.8

Feature type

Data model extension

Proposed functionality

Introduce a "new" RackGroup model that can be used to group racks by their physical placement. This would be a flat organizational model similar to RackRole that serves merely as another dimension of categorization. The Rack model would be extended with a nullable ForeignKey to RackGroup.

("New" is in quotes here because NetBox previously had a RackGroup model, which became the Location model way back in NetBox v2.11.)

The RackGroup model could also function as a scope for a VLANGroup, to help better model L2 domains spanning rows or pairs of racks.

Use case

This would afford users (particularly datacenter operators) a secondary means beside Location to organize their racks. This can be helpful because a DC operator might want to group racks by row, for example, but still assign the racks in several rows to the same location (e.g. a cage or room).

Database changes

  • Introduce a new RackGroup model subclassing OrganizationalModel with no additional fields
  • Add a nullable (optional) ForeignKey on Rack pointing to RackGroup
  • Add the RackGroup model to VLANGROUP_SCOPE_TYPES

External dependencies

N/A

Originally created by @jeremystretch on GitHub (Dec 10, 2025). ### NetBox version v4.4.8 ### Feature type Data model extension ### Proposed functionality Introduce a "new" RackGroup model that can be used to group racks by their physical placement. This would be a flat organizational model similar to RackRole that serves merely as another dimension of categorization. The Rack model would be extended with a nullable ForeignKey to RackGroup. ("New" is in quotes here because NetBox previously had a RackGroup model, which became the Location model way back in [NetBox v2.11](https://github.com/netbox-community/netbox/issues/5895).) The RackGroup model could also function as a scope for a VLANGroup, to help better model L2 domains spanning rows or pairs of racks. ### Use case This would afford users (particularly datacenter operators) a secondary means beside Location to organize their racks. This can be helpful because a DC operator might want to group racks by row, for example, but still assign the racks in several rows to the same location (e.g. a cage or room). ### Database changes - Introduce a new RackGroup model subclassing OrganizationalModel with no additional fields - Add a nullable (optional) ForeignKey on Rack pointing to RackGroup - Add the RackGroup model to `VLANGROUP_SCOPE_TYPES` ### External dependencies N/A
Author
Owner

@NSpikings-dB commented on GitHub (Dec 19, 2025):

I can't think of a use case right now, so just for understanding - would a rack only be able to belong to one RackGroup, or multiple of them?

@NSpikings-dB commented on GitHub (Dec 19, 2025): I can't think of a use case right now, so just for understanding - would a rack only be able to belong to one RackGroup, or multiple of them?
Author
Owner

@jeremystretch commented on GitHub (Dec 22, 2025):

A rack would be assigned to a single rack group, generally indicating its row or pod.

@jeremystretch commented on GitHub (Dec 22, 2025): A rack would be assigned to a single rack group, generally indicating its row or pod.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11916