Support decimal rack/device height units #6940

Closed
opened 2025-12-29 19:47:02 +01:00 by adam · 1 comment
Owner

Originally created by @Toothwitch on GitHub (Sep 7, 2022).

NetBox version

v3.3.2

Feature type

Change to existing functionality

Proposed functionality

With v3.3 we got the possibility to use .5 rack units

As seen in the discussions/issue to this release there are voices to change this from .5 limit to fractions to be more flexible.
https://github.com/netbox-community/netbox/discussions/9727#discussioncomment-3258931
https://github.com/netbox-community/netbox/issues/51

For the api the only change would be to remove the .5 modulo validator.

See also:
https://github.com/netbox-community/netbox/issues/10271

Use case

As seen in the discussions the common rack has 3 rack mount units/holes. But there are even more rack types out there which probably could only be summarized with the common denominator .1
For example there may be some Cisco ASA5505 (.?), Brocade FastIron Edge GS (.3) or Juniper MX104 (.5) around.

Reality shows there is a need for more granularity as the existing datacenters will more than likely not be changed to accomodate the datamodel as of now.

Database changes

No response

External dependencies

No response

Originally created by @Toothwitch on GitHub (Sep 7, 2022). ### NetBox version v3.3.2 ### Feature type Change to existing functionality ### Proposed functionality With v3.3 we got the possibility to use .5 rack units As seen in the discussions/issue to this release there are voices to change this from .5 limit to fractions to be more flexible. https://github.com/netbox-community/netbox/discussions/9727#discussioncomment-3258931 https://github.com/netbox-community/netbox/issues/51 For the api the only change would be to remove the .5 modulo validator. See also: https://github.com/netbox-community/netbox/issues/10271 ### Use case As seen in the discussions the common rack has 3 rack mount units/holes. But there are even more rack types out there which probably could only be summarized with the common denominator .1 For example there may be some Cisco ASA5505 (.?), Brocade FastIron Edge GS (.3) or Juniper MX104 (.5) around. Reality shows there is a need for more granularity as the existing datacenters will more than likely not be changed to accomodate the datamodel as of now. ### Database changes _No response_ ### External dependencies _No response_
adam added the type: feature label 2025-12-29 19:47:02 +01:00
adam closed this issue 2025-12-29 19:47:02 +01:00
Author
Owner

@jeremystretch commented on GitHub (Sep 7, 2022):

I'm sorry, but the time to propose such a change was during the month-long v3.3 beta period preceding the release. I'm aware there was some discussion in the release thread, however no one submitted an actual proposal in the form of a detailed feature request (likely because of the challenges I describe below). As the release has passed, we're no longer considering any potentially breaking changes to the implementation.

For the api the only change would be to remove the .5 modulo validator.

This would be far more involved than that. #51 was implemented by essentially changing the atomic unit for rack space from 1U to 0.5U. What you're suggesting would require changing the atomic unit to 0.1U, which would be extremely unwieldy and greatly complicate the modeling of rack elevations, both visually and as conveyed via the APIs. I actually looked into this early on, and quickly decided against such a complicated scheme in favor of the more palatable approach we have in v3.3 that still addresses the vast majority of use cases.

@jeremystretch commented on GitHub (Sep 7, 2022): I'm sorry, but the time to propose such a change was during the month-long v3.3 beta period preceding the release. I'm aware there was some discussion in the release thread, however no one submitted an actual proposal in the form of a detailed feature request (likely because of the challenges I describe below). As the release has passed, we're no longer considering any potentially breaking changes to the implementation. > For the api the only change would be to remove the .5 modulo validator. This would be far more involved than that. #51 was implemented by essentially changing the atomic unit for rack space from 1U to 0.5U. What you're suggesting would require changing the atomic unit to 0.1U, which would be extremely unwieldy and greatly complicate the modeling of rack elevations, both visually and as conveyed via the APIs. I actually looked into this early on, and quickly decided against such a complicated scheme in favor of the more palatable approach we have in v3.3 that still addresses the vast majority of use cases.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6940