You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we are using include in our jinja2 templates to break large templates into smaller logical units that are based on features. parsing of jinja2 templates woks with Generate Intended Configurations JOB, but not with Generate Intended Configuration. We get next exception:
Traceback (most recent call last):
File "/opt/nautobot/.local/lib/python3.12/site-packages/nornir/core/task.py", line 98, in start
r = self.task(self, **self.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/nautobot/.local/lib/python3.12/site-packages/nornir_jinja2/plugins/tasks/template_file.py", line 43, in template_file
text = t.render(host=task.host, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 1304, in render
self.environment.handle_exception()
File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 939, in handle_exception
raise rewrite_traceback_stack(source=source)
File "/opt/nautobot/git/configjinja_templates/catalyst/base.j2", line 4, in top-level template code
{% include 'catalyst/generic/aaa_config.j2' %}
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/jinja2/loaders.py", line 207, in get_source
raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: catalyst/generic/aaa_config.j2
The text was updated successfully, but these errors were encountered:
Environment
generate intended config
Steps to Reproduce
we are using include in our jinja2 templates to break large templates into smaller logical units that are based on features. parsing of jinja2 templates woks with Generate Intended Configurations JOB, but not with Generate Intended Configuration. We get next exception:
The text was updated successfully, but these errors were encountered: