Cable Trace leads to "division by zero" if the last cable is not connected #17868
Labels
status: needs triage
This issue is awaiting triage by a maintainer
type: bug
A confirmed report of unexpected behavior in the application
Deployment Type
Self-hosted
Triage priority
N/A
NetBox Version
NetBox Community v4.1.3
Python Version
3.11
Steps to Reproduce
Have a switch (or similar) with an interface connected through multiple passive components (ie patchpanel, wall-plugs) to a device with an interface.
From switch, do cable trace on this interface - it will display all in-between interfaces (as expected).
Delete the device without deleting or disconnecting its cable will result in an unterminated cable (might be by design).
Trace the cable again from the switch interface.
Expected Behavior
I expect the cable trace to walk through until the last (unterminated) cable and show either the last device or the unterminated cable to trace down the still existing cables.
Observed Behavior
Results in an error without displaying any svg cable date:
The text was updated successfully, but these errors were encountered: