Filtering device components by device name accepts only one value #3862
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
device1
anddevice2
GET /api/dcim/console-ports/?name=device1&name=device2
Expected Behavior
Both console ports should be returned.
Observed Behavior
Only the console port belonging to
device2
is returned.This is caused by an error in the
device
filter on DeviceComponentFilterSet: It should be a ModelMultipleChoiceFilter to allow passing multiple values.This bug affects all device components except for interfaces, as well as inventory items.
The text was updated successfully, but these errors were encountered: