I use Jinja2 templates for a lot of network device configurations but now I need to make a specific line of names for reporting purposes.
A Jinja2 script I use is as follows
{% for name in names -%}
{{name}} OR
{% endfor -%}
It gives me
name1 OR
name2 OR
name3 OR
that in a text I make it look like what I need is "name1 OR name2 OR name3 OR" then "name1 OR name2 OR name3"
I am trying to research on creating a Jinja2 that will take me close or to the final format that I need.
Could someone help me with this, It would be greatly appreciated.