API filtering 'OR' logic not working for dcim/interfaces "mac_address" #2713

Closed
opened 2025-12-29 18:21:21 +01:00 by adam · 1 comment
Owner

Originally created by @ajknv on GitHub (Jul 1, 2019).

Environment

  • Python version: 3.6.8
  • NetBox version: 2.6.0

Steps to Reproduce

  1. Issue an API query with filter parameters specifying two different mac_address values, for example:
    https://netbox/api/dcim/interfaces/?mac_address=02%3A46%3A8A%3ABD%3AF1%3A35&mac_address=AB%3A77%3A65%3A4D%3ACB%3A10

Expected Behavior

API will return the two interfaces with the corresponding MAC addresses.

Observed Behavior

API returned only the interface for the final mac_address filter, in this case the interface for AB:77:65:4D:CB:10

Originally created by @ajknv on GitHub (Jul 1, 2019). ### Environment * Python version: 3.6.8 * NetBox version: 2.6.0 ### Steps to Reproduce 1. Issue an API query with filter parameters specifying two different mac_address values, for example: https://netbox/api/dcim/interfaces/?mac_address=02%3A46%3A8A%3ABD%3AF1%3A35&mac_address=AB%3A77%3A65%3A4D%3ACB%3A10 ### Expected Behavior API will return the two interfaces with the corresponding MAC addresses. ### Observed Behavior API returned only the interface for the final mac_address filter, in this case the interface for AB:77:65:4D:CB:10
adam added the type: bugstatus: accepted labels 2025-12-29 18:21:21 +01:00
adam closed this issue 2025-12-29 18:21:21 +01:00
Author
Owner

@ajknv commented on GitHub (Jul 1, 2019):

Same problem observed for "dcim/devices".

@ajknv commented on GitHub (Jul 1, 2019): Same problem observed for "dcim/devices".
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2713