-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
status: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application
Description
NetBox version
v3.4.1
Python version
3.8
Steps to Reproduce
- Create a VLAN with vid 1234.
- 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 implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application