netbox icon indicating copy to clipboard operation
netbox copied to clipboard

Add weight to device type / device

Open powerscooter opened this issue 3 years ago • 3 comments

NetBox version

v3.2.3

Feature type

New functionality

Proposed functionality

Hi,

would it be possible to add a weight field (kg) to the Device Type and Device?

Use case

We can only fit a certain weight per rack, we would like to document this directly in Netbox. For this it would be nice to have this at the Device Type, Device and afterwards as a view at the Rack.

Database changes

No response

External dependencies

No response

powerscooter avatar Jul 03 '22 20:07 powerscooter

If we add this, we should take the same approach that we do for storing cable length: Allow the user to specify both a value and a unit (e.g. kilograms or pounds), but also store the absolute weight in kilograms for ordering and filtering. This is because manufacturers may list a device's weight in only one unit or the other, and avoids requiring users to do conversions before entering the data into NetBox.

jeremystretch avatar Jul 05 '22 13:07 jeremystretch

Yes that sounds good. That's exactly how it would be perfect.

powerscooter avatar Jul 07 '22 16:07 powerscooter

We often have floor loading limitations where this feature would be very useful. Suggest weight is also added to the module type which adds to the total device weight. For larger chassis based equipment this will provide a more accurate weight per rack/cabinet. It also would be useful to track rack max. weight capacity (either a factor of the total rack make/model capacity or the floor's loading capacity) so the viewer can see the available weight capacity of the cabinet in a bar chart like you currently can with circuit power.

brainsfull avatar Jul 17 '22 09:07 brainsfull

Suggest weight is also added to the module type which adds to the total device weight. For larger chassis based equipment this will provide a more accurate weight per rack/cabinet.

I think if we take this approach we should add weight fields only to the DeviceType and ModuleType models, and introduce a read-only weight property on device which reports the sum of the device type's weight and the weight of all modules.

jeremystretch avatar Aug 18 '22 14:08 jeremystretch

My only concern is, if we are talking about floor load limits, a rack also adds to the overall weight.

Might it be better to have a weight field, with a weighs property to return the sum of any components.

This would allow you to have both a weight and a weighs on a rack, where weighs would return the sum of all devices weighs "property".

DanSheps avatar Aug 20 '22 13:08 DanSheps