PDU Power Missing on Device Page #4142

Closed
opened 2025-12-29 18:33:24 +01:00 by adam · 0 comments
Owner

Originally created by @stefan-baranoff on GitHub (Sep 26, 2020).

Environment

  • Python version: 3.7
  • NetBox version: 2.9.4
    (We're still evaluating so are using the docker images)

Steps to Reproduce

  1. Create a device
  2. Attach both power ports and power feeds
  3. View the device

Expected Behavior

To be able to see the power (per phase for 3 phase feeds) on the device page

Observed Behavior

There is no power panel displayed for the device

I believe this issue was introduced in commit e635dc1fb3 with the change to netbox/dcim/views.py at line 999 but without a corresponding change to templates/dcim/device.html around what had been line 412/became 332: {% if power_ports and poweroutlets %}. Note there's another instance of power_ports in use in the same block around what had been line 425/became 345: {% for pp in power_ports %}}.

Originally created by @stefan-baranoff on GitHub (Sep 26, 2020). ### Environment * Python version: 3.7 * NetBox version: 2.9.4 (We're still evaluating so are using the docker images) ### Steps to Reproduce 1. Create a device 2. Attach both power ports and power feeds 3. View the device ### Expected Behavior To be able to see the power (per phase for 3 phase feeds) on the device page ### Observed Behavior There is no power panel displayed for the device I believe this issue was introduced in commit e635dc1fb3211dbf742eb3b414566605e63dd22b with the change to netbox/dcim/views.py at line 999 but without a corresponding change to templates/dcim/device.html around what had been line 412/became 332: ` {% if power_ports and poweroutlets %}`. Note there's another instance of `power_ports` in use in the same block around what had been line 425/became 345: ` {% for pp in power_ports %}}`.
adam added the type: bugstatus: accepted labels 2025-12-29 18:33:24 +01:00
adam closed this issue 2025-12-29 18:33:25 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4142