Front port edit form includes rear ports from other devices #2244

Closed
opened 2025-12-29 17:24:03 +01:00 by adam · 1 comment
Owner

Originally created by @hotschmaster23 on GitHub (Dec 21, 2018).

Environment

Python version: 3.6
NetBox version: 2.5.1

Steps to Reproduce

1.) create 3 Patchpanels in devices
2.) create first f.e.g 10 rearports on every device "Cable x"1-3" Rear Port[0-10] "
3.) after that create f.e.g 10 frontports on every device "Cable x"1-3" Front Port[0-10] "
4.) now click on "edit port" from a front port on one of these devices.
5.)in the edit mask move to the dropdown menu from "Rear port" and change the mapped port
editing front port cable
6.) now you will recognize that all ports from all devices are listed and no limitation is happening.
7.) if you do not have unique ports created like in this example and for sure everyone has templates for devices where all ports are named the same (Port 1-10) and not Patchpanel 10 Port1-10, Patchpanel 11 Port 1-10, Patchpanel 12 1-10, then no correct mapping is possible and you choose the wrong rear port for your front port mapping.
8.) A limitation on the current device only should happen when you click on the dropdown menu.

hope this helps to reproduce the bug, as this constellation is not so easy to understand.

Expected Behavior

please limit the choice in drop down mask to edited device only with a "where device" only code, so that not all rear ports are listed in drop down menu from all devices.

Observed Behavior

Originally created by @hotschmaster23 on GitHub (Dec 21, 2018). <!-- NOTE: This form is only for reproducible bugs. If you need assistance with NetBox installation, or if you have a general question, DO NOT open an issue. Instead, post to our mailing list: https://groups.google.com/forum/#!forum/netbox-discuss Please describe the environment in which you are running NetBox. Be sure that you are running an unmodified instance of the latest stable release before submitting a bug report. --> ### Environment Python version: 3.6 NetBox version: 2.5.1 <!-- Describe in detail the steps that someone else can take to reproduce this bug using the current stable release of NetBox (or the current beta release where applicable). --> ### Steps to Reproduce 1.) create 3 Patchpanels in devices 2.) create first f.e.g 10 rearports on every device "Cable x"1-3" Rear Port[0-10] " 3.) after that create f.e.g 10 frontports on every device "Cable x"1-3" Front Port[0-10] " 4.) now click on "edit port" from a front port on one of these devices. 5.)in the edit mask move to the dropdown menu from "Rear port" and change the mapped port <img width="817" alt="editing front port cable" src="https://user-images.githubusercontent.com/28481444/50350268-ed5e4400-053e-11e9-91aa-2905d353168a.png"> 6.) now you will recognize that all ports from all devices are listed and no limitation is happening. 7.) if you do not have unique ports created like in this example and for sure everyone has templates for devices where all ports are named the same (Port 1-10) and not Patchpanel 10 Port1-10, Patchpanel 11 Port 1-10, Patchpanel 12 1-10, then no correct mapping is possible and you choose the wrong rear port for your front port mapping. 8.) A limitation on the current device only should happen when you click on the dropdown menu. hope this helps to reproduce the bug, as this constellation is not so easy to understand. <!-- What did you expect to happen? --> ### Expected Behavior please limit the choice in drop down mask to edited device only with a "where device" only code, so that not all rear ports are listed in drop down menu from all devices. <!-- What happened instead? --> ### Observed Behavior
adam added the type: bugstatus: accepted labels 2025-12-29 17:24:03 +01:00
adam closed this issue 2025-12-29 17:24:03 +01:00
Author
Owner

@hotschmaster23 commented on GitHub (Dec 21, 2018):

If you assign a wrong port, the mask will display an error

Errors

Rear port (Cable 11 Rear Port0) must belong to the same device

what is correct. So error handling is correct but no limitation is done in the drop down menu

@hotschmaster23 commented on GitHub (Dec 21, 2018): If you assign a wrong port, the mask will display an error Errors Rear port (Cable 11 Rear Port0) must belong to the same device what is correct. So error handling is correct but no limitation is done in the drop down menu
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2244