Loosen IP address search filter to match all IPs that start with the given string #1328

Closed
opened 2025-12-29 16:31:30 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Oct 18, 2017).

Issue type

[x] Feature request
[ ] Bug report
[ ] Documentation

Environment

  • Python version: 3.4.3
  • NetBox version: 2.2.2

Description

Currently, the q (search query) filter for IP addresses only matches on complete IP addresses. This can be loosened to match all IPs starting with the given string. For example, 192 should match the IP address 192.0.2.1. This will allow for more natural autocompletion options when searching for an IP address.

Originally created by @jeremystretch on GitHub (Oct 18, 2017). ### Issue type [x] Feature request <!-- Requesting the implementation of a new feature --> [ ] Bug report <!-- Reporting unexpected or erroneous behavior --> [ ] Documentation <!-- Proposing a modification to the documentation --> ### Environment * Python version: 3.4.3 * NetBox version: 2.2.2 ### Description Currently, the `q` (search query) filter for IP addresses only matches on complete IP addresses. This can be loosened to match all IPs starting with the given string. For example, `192` should match the IP address `192.0.2.1`. This will allow for more natural autocompletion options when searching for an IP address.
adam added the type: feature label 2025-12-29 16:31:30 +01:00
adam closed this issue 2025-12-29 16:31:30 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1328