Fixes #21196: q filter should match on primary IP only for IP address values #382

Closed
opened 2026-04-05 16:28:32 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @jeremystretch on 2/11/2026

Fixes: #21196

Update the search() methods on the filtersets for Device and VirtualMachine to query against the primary_ip4 & primary_ip6 filters only if the given search value is a valid IP address.

*Originally created by @jeremystretch on 2/11/2026* ### Fixes: #21196 Update the `search()` methods on the filtersets for Device and VirtualMachine to query against the `primary_ip4` & `primary_ip6` filters only if the given search value is a valid IP address.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#382