Closed Epaphus closed 2 years ago
Attach circuit A end to rear port of patch panel
Thank you for opening a bug report. Unfortunately, the information you have provided is not sufficient for someone else to attempt to reproduce the reported behavior. Remember, each bug report must include detailed steps that someone else can follow on a clean, empty NetBox installation to reproduce the exact problem you're experiencing. These instructions should include the creation of any involved objects, any configuration changes, and complete accounting of the actions being taken. Also be sure that your report does not reference data on the public NetBox demo, as that is subject to change at any time by an outside party and cannot be relied upon for bug reports.
For a blank Netbox install.
The end result should be an interface on a switch connected to a circuit via a patch panel.
I got the same issue while preparing the upgrade of our server from 2.11.12 to 3.0.9. In my case, the error occurs on circuits for which there is no 'Termination Z' endpoint. The trace shows fine in 2.11.12 but fails in 3.0.9. Enabling debug hints at it because the local var traced_path
contains an extra segment:
[(<Interface: Gi3/0/2 (2)>, <Cable: #1969>, <FrontPort: 3>),
(<RearPort: 3>, <Cable: #4316>, <CircuitTermination: Termination A: XXXXXX>),
(None, None, None)]
Nothing makes either termination mandatory, hence cable trace should cope with it nicely.
Edit: I was able to reproduce this bug on demo.netbox.dev. The steps:
NetBox version
v3.0.9
Python version
3.8
Steps to Reproduce
Expected Behavior
Trace to complete showing the correct path
Switch interface -> Patch Panel -> Circuit
Observed Behavior
Trace fails and downloading SVG has a "'NoneType' object has no attribute 'get_absolute_url'" error.