Netbox: Saving a search as a filter

Created on 1 Mar 2019  路  5Comments  路  Source: netbox-community/netbox

Environment

  • Python version: 3.6
  • NetBox version: 61003208e802 (v2.4.8)

Proposed Functionality

Add the ability to save a search in the NetBox menu and name it.

Use Case

An example :

  • We commonly use the filter q=Pool&vrf=0&status=1&role=service-inet to get all our public IP pools.
  • Each user has to bookmark this link in its browser.
  • The ability to save a search in the NetBox menu for all users would be very convenient:

save_search_as_filter

Database Changes

This change requires to add a new table that stores the search (e.g., q=Pool&vrf=0&status=1&role=service-inet) and the name (e.g., public IP pools) as well as an admin section to maintain the saved searches.

External Dependencies

Most helpful comment

@tb-killa, I tried what you suggested and it does the trick like a charm! Thanks again.
Too bad I didn't find this feature earlier in the doc (optional-settings/#banner_top).

All 5 comments

I'm sorry but we're not able to accept requests for any new features until the current backlog has been reduced.

I understand and this is not an important feature.
Maybe we are going to develop it ourselves and send a pull request.
Thanks for your work on NetBox!

If you use this type of search in periodic way, the simple solution would be for the first you build your search links via the

BANNER_TOP BANNER_BOTTOM Setting these variables will display content in a banner at the top and/or bottom of the page, respectively. HTML is allowed.

as this is show everywhere.

Hello @tb-killa,

Yes, we will often use these filters. They are quite permanent so a static solution like you described is totally fine. I will try this when I'm going back to work, thanks!

@tb-killa, I tried what you suggested and it does the trick like a charm! Thanks again.
Too bad I didn't find this feature earlier in the doc (optional-settings/#banner_top).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hellerve picture hellerve  路  3Comments

Grokzen picture Grokzen  路  3Comments

aarjbdea picture aarjbdea  路  3Comments

markve-sa picture markve-sa  路  4Comments

Ali-Yazdani picture Ali-Yazdani  路  3Comments