Make plugin naviation easyer with utility functions #11906

Closed
opened 2025-12-29 21:51:23 +01:00 by adam · 1 comment
Owner

Originally created by @Bapths on GitHub (Dec 8, 2025).

NetBox version

v4.4.7

Feature type

New functionality

Proposed functionality

Hi,

During the development of a NetBox plugin, I tough this would be useful to have similar utility functions such as get_model_buttons() and get_model_item() from netbox.navigation for plugin usage. This could be dedicated functions in netbox.plugins or a slight change to the existing functions so they support plugin views as well.

This mainly is the same as the existing functions with PluginMenuItem / PluginMenuButton classes instead ot MenuItem / MenuIntemButton and "plugins:" at the start of the link attribute.

Use case

This functionality could easily be added to the navigation.py file in the plugin, but since this is quite generic and becomes quite handy when dealing with lots of new models I think this could be an easy add-on to the original code for plugin developers.

Database changes

None

External dependencies

None

Originally created by @Bapths on GitHub (Dec 8, 2025). ### NetBox version v4.4.7 ### Feature type New functionality ### Proposed functionality Hi, During the development of a NetBox plugin, I tough this would be useful to have similar utility functions such as `get_model_buttons()` and `get_model_item()` from netbox.navigation for plugin usage. This could be dedicated functions in netbox.plugins or a slight change to the existing functions so they support plugin views as well. This mainly is the same as the existing functions with PluginMenuItem / PluginMenuButton classes instead ot MenuItem / MenuIntemButton and `"plugins:"` at the start of the `link` attribute. ### Use case This functionality could easily be added to the `navigation.py` file in the plugin, but since this is quite generic and becomes quite handy when dealing with lots of new models I think this could be an easy add-on to the original code for plugin developers. ### Database changes None ### External dependencies None
adam added the type: featurenetbox labels 2025-12-29 21:51:23 +01:00
adam closed this issue 2025-12-29 21:51:23 +01:00
Author
Owner

@arthanson commented on GitHub (Dec 11, 2025):

Thank you for your interest in extending NetBox. Unfortunately, the information you have provided does not constitute an actionable feature request. Per our contributing guide, a feature request must include a thorough description of the proposed functionality, including any database changes, new views or API endpoints, and so on. It must also include a detailed use case justifying its implementation. If you would like to elaborate on your proposal, please modify your post above. If sufficient detail is not added, this issue will be closed.

@arthanson commented on GitHub (Dec 11, 2025): Thank you for your interest in extending NetBox. Unfortunately, the information you have provided does not constitute an actionable feature request. Per our [contributing guide](https://github.com/netbox-community/netbox/blob/main/CONTRIBUTING.md), a feature request must include a thorough description of the proposed functionality, including any database changes, new views or API endpoints, and so on. It must also include a detailed use case justifying its implementation. If you would like to elaborate on your proposal, please modify your post above. If sufficient detail is not added, this issue will be closed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11906