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

Allow Jinja commands in Graph / Link URL #3520

Closed
fknorn opened this issue Sep 20, 2019 · 1 comment
Closed

Allow Jinja commands in Graph / Link URL #3520

fknorn opened this issue Sep 20, 2019 · 1 comment
Assignees
Labels
status: accepted This issue has been accepted for implementation type: feature Introduction of new functionality to the application

Comments

@fknorn
Copy link

fknorn commented Sep 20, 2019

Environment

  • Python version: Python version: 3.6.8
  • NetBox version: NetBox version: 2.6.4

Proposed Functionality

For Extras / Graphs - support Jinja template commands in Link URL fields.

Use Case

When using different monitoring tools for different types of devices. That way, if-then-else statements could be used based on custom variables to create appropriate links to the respective tools.

Database Changes

None

External Dependencies

None

@jeremystretch jeremystretch added status: accepted This issue has been accepted for implementation type: feature Introduction of new functionality to the application labels Oct 17, 2019
@jeremystretch jeremystretch self-assigned this Dec 31, 2019
@jeremystretch
Copy link
Member

I should point out that NetBox does currently support template rendering using the Django language, as noted in the docs. However, we are moving to Jinja2 for all user-facing templating.

jeremystretch added a commit that referenced this issue Jan 10, 2020
jeremystretch added a commit that referenced this issue Jan 10, 2020
…nguage

Fixes #3520: Add template_language to extras.Graph
@lock lock bot locked as resolved and limited conversation to collaborators Apr 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: accepted This issue has been accepted for implementation type: feature Introduction of new functionality to the application
Projects
None yet
Development

No branches or pull requests

2 participants