-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Multi-termination Cable Trace: Interfaces are randomly swapped #14241
Comments
I don't believe this is a bug just an nuance that there is no ordering in place to keep the display same every time the page is opened |
look again closely at the two bottom items: |
I will try and take a stab at this this weekend |
Took a look at this a bit, probably won't be an easy fix and might need a bit of a rewrite to the svg draw code. |
I took a stab at this as well as #13922, they are related. I fixed both. Currently device objects, terminations and cables are drawn separately with no linking them if they appear out of order, I built an extended testcase for that which highlights both issues: Updated Version looks like this: If it is okay for you I will submit my changes as a PR for review for you @DanSheps. Are there additional test-cases that I should do manually (verifying rendered SVG for some data) for changes in the renderer? |
Thanks @Moehritz, I'll take a look! |
NetBox version
v3.6.5
Python version
3.11
Steps to Reproduce
this is reproducible on demo.netbox.dev
1: Create 3 devices (names and interfaces obviously don't matter, but these are the ones in the screenshots):
nms
)dist
) with interface65
spine
) with interface1:10
2: connect server to both switches:
nms
->dist
spine
->nms
3: do a cable trace
Expected Behavior
the interface of switch-old (
dist
) should be displayed above switch-old and same for switch-new (spine
)Observed Behavior
depending on the order in which the terminations were added on the multi-side, the interfaces might be flipped around. it can be "fixed" by removing one of the terminations, saving and re-adding it (if it doesn't work, remove the other one).
flipped:
after the remove-and-readd workaround:
https://demo.netbox.dev/dcim/interfaces/1802/trace/
Tasks
The text was updated successfully, but these errors were encountered: