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

UI: Cable Trace button has incorrect URL for power-port & power-outlet models #11342

Closed
ZPrimed opened this issue Dec 29, 2022 · 0 comments · Fixed by #11347
Closed

UI: Cable Trace button has incorrect URL for power-port & power-outlet models #11342

ZPrimed opened this issue Dec 29, 2022 · 0 comments · Fixed by #11347
Assignees
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@ZPrimed
Copy link

ZPrimed commented Dec 29, 2022

NetBox version

v3.4.1

Python version

3.8

Steps to Reproduce

  1. Create a device with at least one power port
  2. Create another device with at least one power outlet
  3. Connect the power port to the power outlet with a cable
  4. Click on either the power port or the power outlet to get the main "overview" page of the port or outlet (URL should be /dcim/power-ports/{id} or /dcim/power-outlets/{id})
  5. In the "Connection" table on the page, to the right of the "Cable" cell, the cable's ID # will be shown [correct], and the cable trace button to the right of the ID will have an incorrect URL, to /dcim/interfaces instead of /dcim/power-ports or /dcim/power-outlets

Expected Behavior

Expect the cable trace button to trace the power cable, and not some other random interface (which may or may not actually be connected, and hence might throw an error).

Observed Behavior

The Cable Trace button should be referencing /dcim/(power-ports|power-outlets)/{id}/trace/ but instead it references /dcim/interfaces/{id}/trace/. I poked through the code a little bit but I couldn't figure out where/how it is building the URL (possibly due to my very limited Python skill).

@ZPrimed ZPrimed added the type: bug A confirmed report of unexpected behavior in the application label Dec 29, 2022
@kkthxbye-code kkthxbye-code added the status: accepted This issue has been accepted for implementation label Dec 30, 2022
@kkthxbye-code kkthxbye-code self-assigned this Dec 30, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 4, 2023
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