netbox icon indicating copy to clipboard operation
netbox copied to clipboard

Add ability to render template with context data from within GUI

Open DanSheps opened this issue 1 year ago • 1 comments

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

DanSheps avatar Dec 01 '23 15:12 DanSheps

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] avatar Mar 01 '24 04:03 github-actions[bot]