We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
0.2.0
3.12
When generating a plugin, the navigation.py uses an old import (extras.plugins) path which is no longer supported in NetBox v4 (see https://netboxlabs.com/docs/netbox/en/stable/plugins/development/migration-v4/#plugin-resources-relocated). The new path that must be used is "netbox.plugins" The consequence is the plugin doesn't appear in the menu.
Moreover, when the path is fixed, NetBox raises another error message: ... ImportError: cannot import name 'ButtonColorChoices'
As stated in https://netboxlabs.com/docs/netbox/en/stable/plugins/development/migration-v4/#remove-button-colors, the import of ButtonColorChoices must be removed.
The plugin should show up in the Plugin submenu in the left menu bar
No entry in the menu, plugin not loading even if path is fixed
The text was updated successfully, but these errors were encountered:
Fix navigation NetBoxv4 compatibility (issue netbox-community#33)
5e2df7d
Required changes documented in https://netboxlabs.com/docs/netbox/en/stable/plugins/development/migration-v4/#plugin-resources-relocated https://netboxlabs.com/docs/netbox/en/stable/plugins/development/migration-v4/#remove-button-colors Fix issue netbox-community#33
No branches or pull requests
cookiecutter-netbox-plugin version
0.2.0
Python version
3.12
Steps to Reproduce
When generating a plugin, the navigation.py uses an old import (extras.plugins) path which is no longer supported in NetBox v4 (see https://netboxlabs.com/docs/netbox/en/stable/plugins/development/migration-v4/#plugin-resources-relocated). The new path that must be used is "netbox.plugins"
The consequence is the plugin doesn't appear in the menu.
Moreover, when the path is fixed, NetBox raises another error message:
...
ImportError: cannot import name 'ButtonColorChoices'
As stated in https://netboxlabs.com/docs/netbox/en/stable/plugins/development/migration-v4/#remove-button-colors, the import of ButtonColorChoices must be removed.
Expected Behavior
The plugin should show up in the Plugin submenu in the left menu bar
Observed Behavior
No entry in the menu, plugin not loading even if path is fixed
The text was updated successfully, but these errors were encountered: