Configuration Intended 'Include' #177
-
Hi, Through using Configuration Intended I have been able to generate device configurations smoothly. I have been testing the use of 'Include' for aspects such as the banner. Unfortunately, regardless of what I try in terms of directories and locations of the banner.j2 template, I hit the following error message; "There was an issue finding the template and a jinja2. TemplateNotFound error was raised" Is there a specific location I need to place these configuration sections for them to be found? Or is there something else I may be missing? I have tried including "./banner.j2", "banner.j2", "./templates/banner.j2", the full directory of banner.j2, a renamed banner.html variant etc. e.g. {% include 'banner.j2' %} Note: These configuration sections, such as banner.j2, exist in the same git repo as the working device config templates. Thanks for any help. Kind regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Can you show me the folder. Here is a working example https://github.com/nautobot/demo-gc-templates/blob/main/cisco_ios.j2 |
Beta Was this translation helpful? Give feedback.
Can you show me the folder. Here is a working example https://github.com/nautobot/demo-gc-templates/blob/main/cisco_ios.j2