-
Notifications
You must be signed in to change notification settings - Fork 60
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
allow users to more easily add NetBox plugins #530
Comments
One thing I'm not 100% sure about is what about the dependencies that pip would also need to install? as we can be guaranteed internet connectivity? |
todo: don't forget kubernetes stuff for this |
I think this is done. I've tested it with several plugins and it seems to works. If we find issues with specific plugins (and it's something that can be fixed on our end) then we can address those as we go. Note that some plugins that aren't handling things like BASE_PATH right (see netbox-community/netbox-floorplan-plugin#37 for one example) there's not a ton I can do on our side. From the new documentation: NetBox PluginsNetBox's functionality can be extended with plugins that can provide "new data models, integrations, and more" (see also the NetBox Wiki). When Malcolm's NetBox container [starts up]({{ site.github.repository_url }}/blob/{{ site.github.build_revision }}/netbox/scripts/netbox_install_plugins.py), it installs (using pip) any NetBox plugins that have cloned or downloaded and extracted into subdirectories in The following warning is quoted from the NetBox documentation:
|
reopening, need to handle in K8s |
There are two steps to adding a NetBox plugin to Malcolm's instance of NetBox. I'll use the netbox-initializers as an example:
At the moment for a normal user to do this they would have to:
It would be good if we added an easier way to specify a custom netbox plugin, somewhat like we do for other custom rules and scripts.
Probably what we'll do is have a
netbox/custom-plugins
directory where they'd have a sub-directory with the plugin they want. That sub-directory would need to be pip-installable (basically they'd clone it or download it there from GitHub). And on the netbox container's initialization we'd pip install that directory and tweak plugins.py dynamically.The text was updated successfully, but these errors were encountered: