Add Total Weight/Dimensions to Device view #7919

Closed
opened 2025-12-29 20:29:59 +01:00 by adam · 2 comments
Owner

Originally created by @sleepinggenius2 on GitHub (Apr 18, 2023).

Originally assigned to: @abhi1693 on GitHub.

NetBox version

v3.4.8

Feature type

New functionality

Proposed functionality

When #9654 was completed, the total_weight property was added to the Device and Rack models, but only the Rack model current displays it in the UI. I propose adding this to the view for a Device as well. Ideally, this would be in a separate Dimensions card, like under the Rack view, that could also include the Height from the device type, as well as width and depth values, if those are ever added.

Use case

The total_weight field can already be accessed programmatically, so it makes sense to include it in the UI for visibility and there is already precedent for the Rack model.

Database changes

None

External dependencies

None

Originally created by @sleepinggenius2 on GitHub (Apr 18, 2023). Originally assigned to: @abhi1693 on GitHub. ### NetBox version v3.4.8 ### Feature type New functionality ### Proposed functionality When #9654 was completed, the `total_weight` property was added to the `Device` and `Rack` models, but only the `Rack` model current displays it in the UI. I propose adding this to the view for a `Device` as well. Ideally, this would be in a separate *Dimensions* card, like under the `Rack` view, that could also include the Height from the device type, as well as width and depth values, if those are ever added. ### Use case The `total_weight` field can already be accessed programmatically, so it makes sense to include it in the UI for visibility and there is already precedent for the `Rack` model. ### Database changes None ### External dependencies None
adam added the status: acceptedtype: feature labels 2025-12-29 20:29:59 +01:00
adam closed this issue 2025-12-29 20:29:59 +01:00
Author
Owner

@sleepinggenius2 commented on GitHub (May 8, 2023):

The merged PR for this is not correct and is only taking the weight from the device type, not the total_weight field from the device, which includes populated modules.

@sleepinggenius2 commented on GitHub (May 8, 2023): The merged PR for this is not correct and is only taking the weight from the device type, not the `total_weight` field from the device, which includes populated modules.
Author
Owner

@abhi1693 commented on GitHub (May 8, 2023):

I'll raise another PR to include the modules as well. Since it was not called out in the original request, it got missed.

@abhi1693 commented on GitHub (May 8, 2023): I'll raise another PR to include the modules as well. Since it was not called out in the original request, it got missed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7919