Possibility of Jinja2 inside of config context? #14374
Answered
by
candlerb
gdprdatasubect
asked this question in
Help Wanted!
-
Hello, Is it possible to get jinja2 rendered in the config contexts? {
"full-tenant-name": "{{ device.tenant.group.get_family[3] }}-{{ device.tenant }}"
} If that's not possible, is there some other way i can implement the same data without having to replicate it (e.g. custom fields)? Kind regards |
Beta Was this translation helpful? Give feedback.
Answered by
candlerb
Nov 29, 2023
Replies: 1 comment 1 reply
-
Config contexts are JSON data only. If you want template expansion, that has to be done in the consumer of the config contexts, i.e. whatever application is asking Netbox for the data. Or you could write a plugin which exposes its own API endpoints. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
gdprdatasubect
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Config contexts are JSON data only. If you want template expansion, that has to be done in the consumer of the config contexts, i.e. whatever application is asking Netbox for the data. Or you could write a plugin which exposes its own API endpoints.