Device power outlet mark as installed broken #1881

Closed
opened 2025-12-29 17:20:02 +01:00 by adam · 1 comment
Owner

Originally created by @MarcHagen on GitHub (Jul 31, 2018).

🐛 Bug Report

Environment

  • Python version: 3.6.6
  • NetBox version: 2.3.6

Steps to Reproduce

Create a PDU device with some outlets.
Then connect 1 of the outlets to a other device, but mark it as planned.
Go to the PDU power outlets section and there should be a connection ready to be marked installed.

Expected Behavior

Power outlet should be marked installed on clicking the button.

Observed Behavior

The mark as installed button doens't work.
The debug console prints: PATCH http://netbox/api/dcim/console-ports/3/ 404 (Not Found)

It button has the wrong class this should be powerport-toggle: 524da5a2ff/netbox/templates/dcim/inc/poweroutlet.html (L30)

Originally created by @MarcHagen on GitHub (Jul 31, 2018). ### 🐛 Bug Report <!-- NOTE: This form is only for reproducible bugs. If you need assistance with NetBox installation, or if you have a general question, DO NOT open an issue. Instead, post to our mailing list: https://groups.google.com/forum/#!forum/netbox-discuss Please describe the environment in which you are running NetBox. Be sure that you are running an unmodified instance of the latest stable release before submitting a bug report. --> ### Environment * Python version: 3.6.6 * NetBox version: 2.3.6 <!-- Describe in detail the steps that someone else can take to reproduce this bug using the current stable release of NetBox (or the current beta release where applicable). --> ### Steps to Reproduce Create a PDU device with some outlets. Then connect 1 of the outlets to a other device, but mark it as planned. Go to the PDU power outlets section and there should be a connection ready to be marked installed. <!-- What did you expect to happen? --> ### Expected Behavior Power outlet should be marked installed on clicking the button. <!-- What happened instead? --> ### Observed Behavior The mark as installed button doens't work. The debug console prints: `PATCH http://netbox/api/dcim/console-ports/3/ 404 (Not Found)` It button has the wrong class this should be powerport-toggle: https://github.com/digitalocean/netbox/blob/524da5a2ff11d3e5d1f8cd7d1c3615f776a1517f/netbox/templates/dcim/inc/poweroutlet.html#L30
adam added the type: bugstatus: accepted labels 2025-12-29 17:20:02 +01:00
adam closed this issue 2025-12-29 17:20:02 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jul 31, 2018):

Thank you for the fix!

@jeremystretch commented on GitHub (Jul 31, 2018): Thank you for the fix!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1881