-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
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
v2.10.7
Python version
3.8
Steps to Reproduce
This is the only path I have tested:
- Create a circuit
- Create an interface and a Device to link to
- Create a Site
5: Create a Circuit Termination Site (Side A) in the circuit record
6: Create an Interface termination (Side B) in the circuit record
7: Upgrade to netbox v2.10.7
8: Click on the Trace route icon in the Circuits view
Expected Behavior
Trace route tamplete should display instead of crashing the page
Observed Behavior
The Trace route view will crash on TypeError: failed to unpack non-iterable:
netbox/dcim/views.py: PathTraceView
total_length, is_definitive = path.get_total_length if path else (None, False)This fixes the issue for me:
try:
total_length, is_definitive = path.get_total_length if path else (None, False)
except TypeError as te:
total_length, is_definitive = (None, False)
I have checked the Cable model objects in the netbox shell and they show _path ids before and after upgrading netbox and it shows an id (which means that a path exists for this cable).
Also I ran the management command that checks for missing paths and it does not show any issues.
HarryVienna2021
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