Search interfaces in hierarchical structured locations fails #5954

Closed
opened 2025-12-29 19:34:52 +01:00 by adam · 1 comment
Owner

Originally created by @baschdello on GitHub (Jan 17, 2022).

NetBox version

v3.1.5

Python version

3.9

Steps to Reproduce

Create a hierarchical location set like:
block2
| --- rackrow3
| --- rackrow4

Create some racks and assign them to location "row3" and "row4".

Add some devices with interfaces in those racks.

After that use the interface search from menu "Devices => Interfaces" and choose filteroption location: "block2"

Expected Behavior

Interfaces from devices out of parent location "block2" should be listed.

Observed Behavior

None of device interfaces are listed.


Note: this problem is only observed at interface search. If using the device search under menu "Devices => Devices" and choose the parent location "block2" as filteroption like above all devices are listed.

Originally created by @baschdello on GitHub (Jan 17, 2022). ### NetBox version v3.1.5 ### Python version 3.9 ### Steps to Reproduce Create a hierarchical location set like: block2 | --- rackrow3 | --- rackrow4 Create some racks and assign them to location "row3" and "row4". Add some devices with interfaces in those racks. After that use the interface search from menu "Devices => Interfaces" and choose filteroption location: "block2" ### Expected Behavior Interfaces from devices out of parent location "block2" should be listed. ### Observed Behavior None of device interfaces are listed. ------ Note: this problem is only observed at interface search. If using the device search under menu "Devices => Devices" and choose the parent location "block2" as filteroption like above all devices are listed.
adam closed this issue 2025-12-29 19:34:52 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jan 17, 2022):

Just like the region, site group, and site fields, the location field is there only to filter the list of available devices. It does not filter interfaces directly.

If you'd like to propose enabling a location filter for interfaces, please open a feature request citing your use case.

@jeremystretch commented on GitHub (Jan 17, 2022): Just like the region, site group, and site fields, the location field is there only to filter the list of available devices. It does not filter interfaces directly. If you'd like to propose enabling a location filter for interfaces, please open a [feature request](https://github.com/netbox-community/netbox/issues/new?assignees=&labels=type%3A+feature&template=feature_request.yaml) citing your use case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5954