Skip to content

Searching for IPv6 addresses in the global search should search for the compressed format #18811

@kasimon

Description

@kasimon

NetBox version

v4.2.4

Feature type

Change to existing functionality

Proposed functionality

Currently, when searching for ipv6 addresses in the global search, the user may only use the compressed ipv6 form (no leading zeros, multiple :0: blocks replaced by ::). My suggestion is that if the search term correctly parses as an ipv6 address, it should be internally normalized to the compressed form before sending it off to the search engine. Btw a similar correction already is in place with capital letters in ipv6 addresses, which are transparently converted to lower case letters.

Use case

When copying+pasting addresses or constructing search urls from other systems these systems may not always work with the compressed form, which causes the user to have to manually change the search term or being in the wrong impression that this ip address is not present in netbox, causing confusion or errors.

Database changes

None

External dependencies

None

Metadata

Metadata

Assignees

Labels

complexity: lowRequires minimal effort to implementstatus: acceptedThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the application

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions