Interface names listing is duplicated multiple times at connection of interfaces to another device #5100

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

Originally created by @drikusb on GitHub (Jul 26, 2021).

NetBox version

v3.0-beta1(demo instance)

Python version

3.8

Steps to Reproduce

1, Select a device in demo instance eg; dmi01-rochster-sw01
2. Connect interface GigabitEthernet1/0/3 to another device
3. Select 'Device' dmi01-rochester-rtr01
4. 'Select Name' section brings up a listing of interfaces duplicated 13 times
netbox-interface-dup-bug

Expected Behavior

Interfaces should not be duplicated in the 'Select Name' listing .

Observed Behavior

Listed each real interface 13 times for each interface created for/on the device.

Originally created by @drikusb on GitHub (Jul 26, 2021). ### NetBox version v3.0-beta1(demo instance) ### Python version 3.8 ### Steps to Reproduce 1, Select a device in demo instance eg; dmi01-rochster-sw01 2. Connect interface GigabitEthernet1/0/3 to another device 3. Select 'Device' dmi01-rochester-rtr01 4. 'Select Name' section brings up a listing of interfaces duplicated 13 times ![netbox-interface-dup-bug](https://user-images.githubusercontent.com/7657718/126917232-1a56b570-8fc2-4efa-8072-45129800d956.PNG) ### Expected Behavior Interfaces should not be duplicated in the 'Select Name' listing . ### Observed Behavior Listed each real interface 13 times for each interface created for/on the device.
adam added the type: bugstatus: duplicatebeta labels 2025-12-29 19:24:13 +01:00
adam closed this issue 2025-12-29 19:24:13 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jul 29, 2021):

I'm not able to replicate this. What I think may be happening is that the interfaces list is being populated prematurely, before the B side device is selected. This will cause it to populate all interfaces, rather than just those assigned to the selected device. (After selecting a device, the interfaces list returns only the relevant interfaces.)

Still a bug, though. We should prevent fields which rely on parent selections from auto-populating until those parent fields have been selected.

@jeremystretch commented on GitHub (Jul 29, 2021): I'm not able to replicate this. What I think may be happening is that the interfaces list is being populated prematurely, before the B side device is selected. This will cause it to populate *all* interfaces, rather than just those assigned to the selected device. (After selecting a device, the interfaces list returns only the relevant interfaces.) Still a bug, though. We should prevent fields which rely on parent selections from auto-populating until those parent fields have been selected.
Author
Owner

@thatmattlove commented on GitHub (Jul 30, 2021):

The cause of this is the same as #6808. Closing this as a duplicate.

@thatmattlove commented on GitHub (Jul 30, 2021): The cause of this is the same as #6808. Closing this as a duplicate.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5100