-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Closed
Copy link
Labels
status: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application
Description
NetBox version
v3.4.1
Python version
3.8
Steps to Reproduce
- Create a device with at least one power port
- Create another device with at least one power outlet
- Connect the power port to the power outlet with a cable
- 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}) - 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/interfacesinstead of/dcim/power-portsor/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).
Metadata
Metadata
Assignees
Labels
status: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application