Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDU Power Missing on Device Page #5184

Closed
stefan-baranoff opened this issue Sep 26, 2020 · 0 comments · Fixed by #5185
Closed

PDU Power Missing on Device Page #5184

stefan-baranoff opened this issue Sep 26, 2020 · 0 comments · Fixed by #5185
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@stefan-baranoff
Copy link

stefan-baranoff commented 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 e635dc1 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 %}}.

@kobayashi kobayashi added status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application labels Sep 27, 2020
kobayashi added a commit to kobayashi/netbox that referenced this issue Sep 27, 2020
kobayashi added a commit to kobayashi/netbox that referenced this issue Sep 27, 2020
jeremystretch added a commit that referenced this issue Sep 28, 2020
Fixes #5184: Fix missing Power Utilization
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants