Skip to content
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

Searching for custom field values doesn't work #229

Open
jwbensley opened this issue Dec 2, 2024 · 1 comment
Open

Searching for custom field values doesn't work #229

jwbensley opened this issue Dec 2, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@jwbensley
Copy link

NetBox version
NetBox v3.7.8 with BGP plugin v0.12.1.

Describe the bug
When searching BGP sessions for a value stored in a custom field, now BGP sessions are found with this value (custom fields aren't being searched). Searching for a value stored in a native field works fine.

To Reproduce

Below I search for a partial value stored in a custom field called "AS-SET", but as you can see, no BGP sessions are found:

grafik

Below I search for the name of the BGP session, the sessions are found and you can see the value I was searching for exists in the custom field:

grafik

Expected behavior

I would expect the search to search values in custom fields.

@jwbensley jwbensley added the bug Something isn't working label Dec 2, 2024
@cruse1977 cruse1977 self-assigned this Dec 2, 2024
@cruse1977
Copy link
Member

Hi james, I need to do some testing around this in terms of auto including custom fields - however one way to do this is to specify the custom fields and type of search in configuration.py - would this suit your needs -

eg: {'as_set': ['icontains', 'exact']}

@cruse1977 cruse1977 added enhancement New feature or request and removed bug Something isn't working labels Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants