Adding connection: before selecting "device", "name" gives list of all ports in rack #5508

Closed
opened 2025-12-29 19:28:48 +01:00 by adam · 2 comments
Owner

Originally created by @candlerb on GitHub (Oct 12, 2021).

NetBox version

v3.0.7

Python version

3.8

Steps to Reproduce

  1. Add a device with a power port (say)
  2. Click on the "connect" button next to the power port
  3. On the "B" side form, click the port "Name" field, before selecting a device

Expected Behavior

Not to be able to select a port until the device has been selected.

Observed Behavior

The drop-down menu shows every port on every device in that rack:

image

Since the port names are not qualified by the device name, this isn't useful, yet potentially it requires rendering many hundreds of ports.

I didn't think it used to work this way, but I could be wrong.

Originally created by @candlerb on GitHub (Oct 12, 2021). ### NetBox version v3.0.7 ### Python version 3.8 ### Steps to Reproduce 1. Add a device with a power port (say) 2. Click on the "connect" button next to the power port 3. On the "B" side form, click the port "Name" field, **before** selecting a device ### Expected Behavior Not to be able to select a port until the device has been selected. ### Observed Behavior The drop-down menu shows *every* port on *every* device in that rack: ![image](https://user-images.githubusercontent.com/44789/136947746-9531fc85-efe6-48ee-a34d-f5bb95c2681a.png) Since the port names are not qualified by the device name, this isn't useful, yet potentially it requires rendering many hundreds of ports. I didn't *think* it used to work this way, but I could be wrong.
adam added the type: bug label 2025-12-29 19:28:48 +01:00
adam closed this issue 2025-12-29 19:28:48 +01:00
Author
Owner

@jeremystretch commented on GitHub (Oct 12, 2021):

This is expected behavior. NetBox is returning the list of available components given the constraints provided. There are many cases where such behavior is desirable: For instance, suppose there is only one PDU in a rack. It would make no sense to force the user to select that PDU before selecting an outlet.

@jeremystretch commented on GitHub (Oct 12, 2021): This is expected behavior. NetBox is returning the list of available components given the constraints provided. There are many cases where such behavior is desirable: For instance, suppose there is only one PDU in a rack. It would make no sense to force the user to select that PDU before selecting an outlet.
Author
Owner

@candlerb commented on GitHub (Oct 12, 2021):

OK, closing as works-as-intended.

@candlerb commented on GitHub (Oct 12, 2021): OK, closing as works-as-intended.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5508