Device search limited to non-racked devices when creating a new connection #2494

Closed
opened 2025-12-29 18:19:22 +01:00 by adam · 3 comments
Owner

Originally created by @shugotek on GitHub (Apr 4, 2019).

Environment

  • Python version: 3.6.7
  • NetBox version: 2.5.9

Steps to Reproduce

1.Go on device
2.Select "Connect" on one interface
3.Search a device with "Search" function

Expected Behavior

List all device, and can filter if we write anything

Observed Behavior

List only non-racked device and finally "search" become unusable

Originally created by @shugotek on GitHub (Apr 4, 2019). ### Environment * Python version: 3.6.7 * NetBox version: 2.5.9 ### Steps to Reproduce 1.Go on device 2.Select "Connect" on one interface 3.Search a device with "Search" function ### Expected Behavior List all device, and can filter if we write anything ### Observed Behavior List only non-racked device and finally "search" become unusable
adam added the type: bugstatus: accepted labels 2025-12-29 18:19:22 +01:00
adam closed this issue 2025-12-29 18:19:23 +01:00
Author
Owner

@DanSheps commented on GitHub (Apr 4, 2019):

Caused by rack_id=null not showing all racks.

@DanSheps commented on GitHub (Apr 4, 2019): Caused by rack_id=null not showing all racks.
Author
Owner

@DanSheps commented on GitHub (Apr 4, 2019):

Looks like this was added in f6345b9a5d inadvertently

@DanSheps commented on GitHub (Apr 4, 2019): Looks like this was added in f6345b9a5d503ed72e9f78a7bb0dc6fbd0347b35 inadvertently
Author
Owner

@candlerb commented on GitHub (Apr 4, 2019):

Darn, I just picked this up too :-) When searching for "wrn", tcpdump shows:

GET /api/dcim/devices/?q=wrn&brief=1&limit=50&offset=0&rack_id=null

... so it only matches unracked devices.

@candlerb commented on GitHub (Apr 4, 2019): Darn, I just picked this up too :-) When searching for "wrn", tcpdump shows: ``` GET /api/dcim/devices/?q=wrn&brief=1&limit=50&offset=0&rack_id=null ``` ... so it only matches unracked devices.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2494