add jinja files

This commit is contained in:
amar kantas
2023-04-19 14:29:23 +02:00
parent 44fb59af52
commit 2a564bba38
3 changed files with 49 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
{%- for interface in interfaces %}
{% if 'g2/0' != interface.name and 'g3/0' != interface.name %}
interface {{ interface.name }}
vrrp {{interface.vrrp_id}} ip {{interface.vrrp_vip}}
vrrp {{interface.vrrp_id}} priority {{interface.vrrp_priority}}
{%- if 'master' == interface.vrrp_role %}
vrrp {{interface.vrrp_id}} preempt
exit
{%- endif -%}
{% endif %}
{%- endfor %}