Skip to content

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

@kkthxbye-code

Description

@kkthxbye-code

NetBox version

v3.4.4

Feature type

Change to existing functionality

Proposed functionality

Relevant bug report: #11315
Relevant discussion: #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

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions