Skip to content

custom link - matching region #7822

Answered by davama
davama asked this question in Q&A
Nov 12, 2021 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

Solved

added custom context

   { "device_region": "AMER"}

Then referenced it in jinja2

{% set data = obj.get_config_context() %}
https://usinmon.domain.com/inmsf/Monitor?path=WHQ%3E{{data.device_region}}%3E{{obj.site}}%3E{{obj.device_role.name}}%3E{{obj.name|upper}}

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by davama
Comment options

You must be logged in to vote
1 reply
@davama
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants