Skip to content
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

Closes #11559: Implement config template rendering #11769

Merged
merged 13 commits into from
Feb 17, 2023

Conversation

jeremystretch
Copy link
Member

Fixes: #11559

  • Introduce a new ConfigTemplate model under extras
  • Add ForeignKeys on Device, DeviceRole, and Platform referencing ConfigTemplate
  • Add DeviceRenderConfigView to display rendered configs in the UI
  • Add a /render/ REST API endpoint to render ConfigTemplates

@jeremystretch jeremystretch marked this pull request as ready for review February 17, 2023 13:03
@jeremystretch jeremystretch merged commit e442bb9 into feature Feb 17, 2023
@jeremystretch jeremystretch deleted the 11559-config-templates branch February 17, 2023 13:33
jeremystretch added a commit that referenced this pull request Feb 20, 2023
* WIP

* Add config_template field to Device

* Pre-fetch referenced templates

* Correct up_to_date callable

* Add config_template FK to Device

* Update & merge migrations

* Add config_template FK to Platform

* Add tagging support for ConfigTemplate

* Catch exceptions when rendering device templates in UI

* Refactor ConfigTemplate.render()

* Add support for returning plain text content

* Add ConfigTemplate model documentation

* Add feature documentation for config rendering
jeremystretch added a commit that referenced this pull request Feb 20, 2023
* WIP

* Add config_template field to Device

* Pre-fetch referenced templates

* Correct up_to_date callable

* Add config_template FK to Device

* Update & merge migrations

* Add config_template FK to Platform

* Add tagging support for ConfigTemplate

* Catch exceptions when rendering device templates in UI

* Refactor ConfigTemplate.render()

* Add support for returning plain text content

* Add ConfigTemplate model documentation

* Add feature documentation for config rendering
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant