Allow Jinja commands in Graph / Link URL #2887

Closed
opened 2025-12-29 18:23:07 +01:00 by adam · 1 comment
Owner

Originally created by @fknorn on GitHub (Sep 20, 2019).

Originally assigned to: @jeremystretch on GitHub.

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

Originally created by @fknorn on GitHub (Sep 20, 2019). Originally assigned to: @jeremystretch on GitHub. ### 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
adam added the status: acceptedtype: feature labels 2025-12-29 18:23:07 +01:00
adam closed this issue 2025-12-29 18:23:07 +01:00
Author
Owner

@jeremystretch commented on GitHub (Dec 31, 2019):

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 commented on GitHub (Dec 31, 2019): I should point out that NetBox _does_ currently support template rendering using the Django language, as noted [in the docs](https://netbox.readthedocs.io/en/stable/additional-features/graphs/). However, we are moving to Jinja2 for all user-facing templating.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2887