Interfaces API endpoint does not allow filtering by multiple device slugs #3724
Labels
status: accepted
This issue has been accepted for implementation
type: bug
A confirmed report of unexpected behavior in the application
Environment
Steps to Reproduce
device-1
anddevice-2
/api/dcim/interfaces/
endpoint by both the device names. i.e./api/dcim/interfaces/?device=device-1&device=device-2
Expected Behavior
The result set to include all interfaces from both devices.
Observed Behavior
Only those interfaces belonging to device-2 are returned. This is because device-2 is listed last in the query param filter.
The root cause is the InterfaceFilter uses a method for the
device
field which does not accept multiple values.https://github.com/netbox-community/netbox/blob/develop/netbox/dcim/filters.py#L750
The text was updated successfully, but these errors were encountered: