Filter by device does not work when querying for modules. #6808

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

Originally created by @agreusel on GitHub (Aug 15, 2022).

NetBox version

v3.2.7

Python version

3.10

Steps to Reproduce

https://ipam.network.anduril.dev/api/dcim/modules/?device=device_xyz

Returns all modules, ignoring the filter. If you change the request to:


https://ipam.network.anduril.dev/api/dcim/interfaces/?device=device_xyz

Only the interfaces for device_xyz are returned.

Expected Behavior

Using a 'device = device_xyz' filter should only return modules assigned to device_xyz.

Observed Behavior

All modules were returned.

Originally created by @agreusel on GitHub (Aug 15, 2022). ### NetBox version v3.2.7 ### Python version 3.10 ### Steps to Reproduce https://ipam.network.anduril.dev/api/dcim/modules/?device=device_xyz Returns all modules, ignoring the filter. If you change the request to: ------- https://ipam.network.anduril.dev/api/dcim/interfaces/?device=device_xyz Only the interfaces for device_xyz are returned. ### Expected Behavior Using a 'device = device_xyz' filter should only return modules assigned to device_xyz. ### Observed Behavior All modules were returned.
adam added the type: bug label 2025-12-29 19:45:41 +01:00
adam closed this issue 2025-12-29 19:45:41 +01:00
Author
Owner

@jeremystretch commented on GitHub (Aug 15, 2022):

I'm closing this as you have not provided any reproduction steps. If you'd like to invest some time into rewriting this as a valid bug report, you're welcome to do so, and I'll be happy to re-open it once it meets the standards set forth in the bug report template.

@jeremystretch commented on GitHub (Aug 15, 2022): I'm closing this as you have not provided any reproduction steps. If you'd like to invest some time into rewriting this as a valid bug report, you're welcome to do so, and I'll be happy to re-open it once it meets the standards set forth in the bug report template.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6808