Add ability to render template with context data from within GUI #8904

Open
opened 2025-12-29 20:42:41 +01:00 by adam · 1 comment
Owner

Originally created by @DanSheps on GitHub (Dec 1, 2023).

NetBox version

v3.6.6

Feature type

Change to existing functionality

Proposed functionality

Add ability to pass some context data and render a template within the GUI based on the context data.

Use case

Currently, you are able to render the configuration templates manually within the API (POST /api/extras/config-templates/9/render/) however no such ability exists within the GUI.

Having the ability to pass context data via a form and produced rendered content would bring parity to this feature between the API and the GUI.

It would allow testing and validation of templates prior to deploying them to a new platform and allow for "snippets" to be generated to make changes.

Changes required

  • New url (/render)
  • New view (ConfigTemplateRender)
  • New form (ConfigTemplateRender)

Database changes

No database changes

External dependencies

No response

Originally created by @DanSheps on GitHub (Dec 1, 2023). ### NetBox version v3.6.6 ### Feature type Change to existing functionality ### Proposed functionality Add ability to pass some context data and render a template within the GUI based on the context data. ### Use case Currently, you are able to render the configuration templates manually within the API (POST /api/extras/config-templates/9/render/) however no such ability exists within the GUI. Having the ability to pass context data via a form and produced rendered content would bring parity to this feature between the API and the GUI. It would allow testing and validation of templates prior to deploying them to a new platform and allow for "snippets" to be generated to make changes. ### Changes required * New url (/render) * New view (ConfigTemplateRender) * New form (ConfigTemplateRender) ### Database changes No database changes ### External dependencies _No response_
Author
Owner

@github-actions[bot] commented on GitHub (Mar 1, 2024):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.

@github-actions[bot] commented on GitHub (Mar 1, 2024): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. **Do not** attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our [contributing guide](https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8904