-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ASN Ranges are not searchable by name #17537
Comments
Thank you for opening a bug report. Unfortunately, the information you have provided is not sufficient for someone else to attempt to reproduce the reported behavior. Remember, each bug report must include detailed steps that someone else can follow on a clean, empty NetBox installation to reproduce the exact problem you're experiencing. These instructions should include the creation of any involved objects, any configuration changes, and complete accounting of the actions being taken. Also be sure that your report does not reference data on the public NetBox demo, as that is subject to change at any time by an outside party and cannot be relied upon for bug reports. |
Updated steps to reproduce @jeremystretch |
Tested it on Netbox 3.7.8, 4.0.10 and 4.1.1 - all having same behavior, ASN Ranges are not searchable by their name, should this search index have added name field to get it working - Line 29 in 2dd5c82
The way how I came across the issue was running custom script to pull ASN ranges using this query for dropdown menu form, but it is not returning all ASN ranges, only some of them, it is working fine on 3.7.8 but not on 4.x - all existing asn ranges were available in drop down on 3.7.8 while only some on 4.0.10/4.1.1.:
|
Oh, actually I know why it was working for some asn ranges and for some not on version 4.0.10/4.1.1, cause ASNRangeIndex uses description to search for asn range: Line 34 in 2dd5c82
and I did populate description field with value equal to range name for some of them but not for all. |
If possible, could ASN range search index be updated to include ASN Range's name field please. |
Deployment Type
Self-hosted
NetBox Version
v4.1.1
Python Version
3.10
Steps to Reproduce
Expected Behavior
Searching ranges by name works
Observed Behavior
Ranges are not searchable by name, I remember that was working in 3.7.8 version
The text was updated successfully, but these errors were encountered: