Show containing Prefixes and Aggregates when doing a site-wide partial search #7614

Closed
opened 2025-12-29 20:26:03 +01:00 by adam · 1 comment
Owner

Originally created by @kkthxbye-code on GitHub (Feb 7, 2023).

Originally assigned to: @kkthxbye-code on GitHub.

NetBox version

v3.4.4

Feature type

Change to existing functionality

Proposed functionality

Relevant bug report: https://github.com/netbox-community/netbox/issues/11315
Relevant discussion: https://github.com/netbox-community/netbox/discussions/11665

In short the goal is to find prefixes and aggregates based on the input, if the input is parsable as an netaddr.IPNetwork.

Use case

It is useful to get the parent prefix if searching for both existing and non-existent IPAddresses and more closely matches the previous global search. More reasoning can be found in the linked bug report.

Database changes

While no actual database changes should be necessary, changing the CachedValue.value field to a custom field type inherating TextField generates a migration, but there should be no actual SQL schema changes. See the PR.

External dependencies

None

Originally created by @kkthxbye-code on GitHub (Feb 7, 2023). Originally assigned to: @kkthxbye-code on GitHub. ### NetBox version v3.4.4 ### Feature type Change to existing functionality ### Proposed functionality Relevant bug report: https://github.com/netbox-community/netbox/issues/11315 Relevant discussion: https://github.com/netbox-community/netbox/discussions/11665 In short the goal is to find prefixes and aggregates based on the input, if the input is parsable as an netaddr.IPNetwork. ### Use case It is useful to get the parent prefix if searching for both existing and non-existent IPAddresses and more closely matches the previous global search. More reasoning can be found in the linked bug report. ### Database changes While no actual database changes should be necessary, changing the CachedValue.value field to a custom field type inherating TextField generates a migration, but there should be no actual SQL schema changes. See the PR. ### External dependencies None
adam added the status: acceptedtype: feature labels 2025-12-29 20:26:03 +01:00
adam closed this issue 2025-12-29 20:26:04 +01:00
Author
Owner

@PieterL75 commented on GitHub (Feb 8, 2023):

I'm really waiting for this one before I push 3.4 to production. The search results are indeed lacking this information and is a requirement for my users.
Too bad I did not catch that in the beta tests I did. Just overwhelmed by the speed and nice results :-)

@PieterL75 commented on GitHub (Feb 8, 2023): I'm really waiting for this one before I push 3.4 to production. The search results are indeed lacking this information and is a requirement for my users. Too bad I did not catch that in the beta tests I did. Just overwhelmed by the speed and nice results :-)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7614