-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Support custom scripts for automatically manipulating objects #3415
Comments
Very cool idea! Is this functionality intended method of invocation GUI only? Or do you plan to add API endpoints for it as well? |
This looks fantastic and will greatly enable Netbox. Wishful thinking, but it would add to its versatility if the scripts could be triggered by or linked to Imagine that might open / create other problems. |
I'd like to try a new approach for this feature. Whereas normally something like this would be introduced in a beta for testing, and then finalized in an official 2.x release, I'm going to introduce the tentative implementation in a 2.6.x patch release so people can preview the feature before it becomes "official." (We can do this only because the feature does not introduce any breaking changes.) My thought is that this will allow us to gather feedback and real-world use cases prior to establishing an API for it. The API endpoint will be introduced as part of the 2.7 release. |
That sounds like a smooth plan to fuel feedback and adoption |
Environment
Proposed Functionality
Extend NetBox to allow users to run custom scripts natively within the UI, in a similar fashion to how reports are used today. This is essentially a mechanism for integrating standalone scripts into the NetBox UI and API.
For example, a developer might write a script to automatically populate the appropriate devices and prefixes for a new site being deployed. The script would prompt a user for several variables as a web form, and when submitted the script will run, using the provided data to automatically build objects in NetBox.
This idea was split from #1364 (deployment templates) and covers much of its scope. However, we opted to keep #1364 open as an FR for a more user-friendly feature in the future (one which does not require custom scripting).
Use Case
Custom scripts can be used for many things, such as:
Database Changes
This remains to be determined, though it likely will not require any database changes.
External Dependencies
None
The text was updated successfully, but these errors were encountered: