netbox-community / netbox

The premier source of truth powering network automation. Open source under Apache 2. Try NetBox Cloud free: https://netboxlabs.com/free-netbox-cloud/
http://netboxlabs.com/oss/netbox/
Apache License 2.0
16.07k stars 2.58k forks source link

Calculate power utilization based on the installed devices and modules #12671

Closed chwichmann closed 1 year ago

chwichmann commented 1 year ago

NetBox version

v3.5.1

Feature type

Data model extension

Proposed functionality

Set the estimated power consumption in watts on the device type and module type. On the power port allocated draw write {device} and the way the power port fetches the data for the allocated draw is now by iterate through all installed modules and the hosting device and sum the “estimated power consumption”. The maximum draw still is the physical limit for that power port where the allocated power draw is the real one based on the assembly of the device.

Redundant PSU’s This will also work for redundant power supplies by assuming that the allocated draw needs to be available for both installed PSU’s. at any time.

Devices with three + PSU’s Some devices have three ore more PSU’s and aren’t designed to handle the whole electrical draw (n+1 design). In this case you may fill in the allocated draw manually (like now) on the power port.

Backward compatibility By only activating this new feature with the {device} string it should not break any actual code or behavior.

Use case

For chassis-based devices it’s common that the overall power consumption depends on the installed modules. Therefore, it would be nice to see the real power consumption based on the installed modules.

• You may deal with power ratings of shelfs and PSU’s because there is an older hardware revision that is not rated for the power of possible assemblies – like newer 400G+ Line cards.

• In life cycle projects you may have new devices with higher power demands than the old one. Depending on the really needs of the assembly in a particular site you may see if the actual power feed and the outlet need an upgrade

• Based on this calculation you may forecast the costs for electricity more accurate

• The UPS and batterie uptime on a remote site are dependent on the power consumption. Based on the proposed feature the uptime calculations would be more accurate

• PSU’s with module-based rectifiers can be assembled based on the real need of the device

Database changes

DCIM.DeviceType Model add IntegerField “power_consumption” DCIM.ModuleType Model add IntegerField “power_consumption”

External dependencies

N.A.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.

github-actions[bot] commented 1 year ago

This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.