Skip to content

Referencing config-templates defined in provisioning -> config-templates from other config-templates #15505

Answered by pl0xym0r
ftonjes asked this question in Help Wanted!
Discussion options

You must be logged in to vote

I think it was not designed to do this, as you are trying to including into a jinja template a netbox object.
You can use stuff like {{ extras.ConfigTemplate.objects.get(name="cisco-ios-base").template_code }} to access the str of the others config template but it's not rendered (twice) by python.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@ftonjes
Comment options

@kevinsdirectory
Comment options

@ftonjes
Comment options

Answer selected by ftonjes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants