Rear port selection widget not working properly when creating Front Port templates #8109

Closed
opened 2025-12-29 20:32:32 +01:00 by adam · 3 comments
Owner

Originally created by @shatt79 on GitHub (May 24, 2023).

Originally assigned to: @DanSheps on GitHub.

NetBox version

v3.5.2

Python version

3.8

Steps to Reproduce

  1. Go to device-types and select a device with multiple rear ports
  2. Add multiple front ports
  3. Unable to select a range of rear ports to associate with the multiple front ports.

Expected Behavior

Behavior should be like when adding front ports to an already existing device. You should be able to select a range of rear ports when adding multiple front ports.

When modifying an existing device, the process works properly (fixed in 3.5.2).
image

Observed Behavior

You can only select one port at a time rather than a range. When creating or modifying a device-type like a patch panel with hundreds of ports, this slows down the process.

image

Originally created by @shatt79 on GitHub (May 24, 2023). Originally assigned to: @DanSheps on GitHub. ### NetBox version v3.5.2 ### Python version 3.8 ### Steps to Reproduce 1. Go to device-types and select a device with multiple rear ports 2. Add multiple front ports 3. Unable to select a range of rear ports to associate with the multiple front ports. ### Expected Behavior Behavior should be like when adding front ports to an already existing device. You should be able to select a range of rear ports when adding multiple front ports. When modifying an existing device, the process works properly (fixed in 3.5.2). ![image](https://github.com/netbox-community/netbox/assets/103387334/3bb34881-4998-45fd-bd20-33fdf8ac2897) ### Observed Behavior You can only select one port at a time rather than a range. When creating or modifying a device-type like a patch panel with hundreds of ports, this slows down the process. ![image](https://github.com/netbox-community/netbox/assets/103387334/de314ea1-cb04-4c45-8a62-bb4df91c1d76)
adam added the type: bugstatus: accepted labels 2025-12-29 20:32:32 +01:00
adam closed this issue 2025-12-29 20:32:33 +01:00
Author
Owner

@DanSheps commented on GitHub (May 24, 2023):

Hello,

This is a multi-select box and I am still able to select multiple ports, you just have to select them one at a time, but multiple ports can be entered in the dialog. Are you seeing different behaviour?

@DanSheps commented on GitHub (May 24, 2023): Hello, This is a multi-select box and I am still able to select multiple ports, you just have to select them one at a time, but multiple ports can be entered in the dialog. Are you seeing different behaviour?
Author
Owner

@kkthxbye-code commented on GitHub (May 24, 2023):

@DanSheps - It's supposed to be a selection input like this:

image

Selecting tens of ports one by one is terrible UX. I think it was just missed in this issue as it wasn't specified that it applied to device types as well.

https://github.com/netbox-community/netbox/issues/12550

@kkthxbye-code commented on GitHub (May 24, 2023): @DanSheps - It's supposed to be a selection input like this: ![image](https://github.com/netbox-community/netbox/assets/400797/8add7244-77aa-4325-8932-079dd20ee402) Selecting tens of ports one by one is terrible UX. I think it was just missed in this issue as it wasn't specified that it applied to device types as well. https://github.com/netbox-community/netbox/issues/12550
Author
Owner

@DanSheps commented on GitHub (May 24, 2023):

It looks like it might be missing:

    widget=forms.SelectMultiple(attrs={'size': 6})
@DanSheps commented on GitHub (May 24, 2023): It looks like it might be missing: widget=forms.SelectMultiple(attrs={'size': 6})
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8109