Skip to content

New search feature: vid doesn't match when queried #11232

@cs-1

Description

@cs-1

NetBox version

v3.4.1

Python version

3.8

Steps to Reproduce

  1. Create a VLAN with vid 1234.
  2. Search for "1234" in search field.

Expected Behavior

A search for "1234" should yield the created VLAN in the results.

Observed Behavior

VLAN 1234 isn't found.

I've looked at the new search mechanism in > v3.4.0 and at least in netbox/netbox/ipam/search.py I can find

@register_search
class VLANIndex(SearchIndex):
    model = models.VLAN
    fields = (
        ('name', 100),
        ('vid', 100),
        ('description', 500),
        ('comments', 5000),
    )

which means that vid should be used as "Primary human identifier" to find the VLAN. But it reproducibly doesn't work.

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions