-
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
Usability: cable ends "don't change" unless you deselect and reselect interface #10841
Comments
I believe this is a similar bug as described in #10757, just with cables instead of IPs... |
Thanks, yes it's similar. However unlike an IP address assignment, a cable endpoint can be asigned to multiple interfaces on multiple devices simultaneously This means that simply clearing the list of interfaces when you change the selected device is not a solution here. |
Correct. Altering this behavior without devising a new mechanism for the selection of components would break the ability to terminate a cable to components across different devices. Any work in this regard is likely going to depend on #10054. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide. |
This will be addressed when the cable creation view & form are overhauled as part of #12127 in v3.5. |
NetBox version
v3.3.7
Python version
3.8
Steps to Reproduce
Expected Behavior
Cable to be changed so that it connects dev3 en0 to dev2 en0.
Observed Behavior
Nothing happens: there is a pop-up saying
Modified cable #NNN
but the cable remains as it was before, with the A end on dev1 en0.What I think is happening: when you change the A end device from "dev1" to "dev3", you still see "en0" selected...
--> change the device selection -->
... but I believe that this "en0" still refers to "the en0 on dev1" rather than "the en0 on dev3".
Workaround
Delete and re-add the en0 selection next to Interface*. Now if you save, the change is accepted. (However the screen looks identical in both cases, and it's very confusing)
Solution
It note that it is permitted for one end of a cable to connect to two or more different interfaces on different devices. For example, I can connect the A end of this cable to dev1 en0 and dev3 en0 simultaneously. If I then edit this cable, I see:
I presume this is an intentional feature, e.g. for modelling QSFP breakout cables where one "end" goes to multiple devices.
If so, then I think the problem is that the interface names are not sufficiently distinguished. In that case, I suggest that either:
Option 2 is less visually cluttered for the majority case where all the terminations are associated with a single device. In this case, if you had a single endpoint but you change the device to "dev3" then the interface list would change to show "dev1 en0", and it would be clear that this isn't the interface you want to connect to.
Alternatively, it could be clearer to rework the UI to have each set of terminations on a particular device grouped together, e.g.
+
(add another device - adds another row)Then inside each list of interfaces, you could only select ones relating to the selected device. And if you change the selected device in a given row, it could either blank out the list of interfaces, or replace them with interfaces with corresponding names.
The text was updated successfully, but these errors were encountered: