1
0
IaC/ansible/playbooks/templates/bridge.network.j2

15 lines
358 B
Django/Jinja

[Match]
Name={{ item.name | regex_replace('^[0-9]*-', '') | regex_replace('\.network', '') }}
[Link]
ARP={{ item.arp | default(true) }}
[Network]
DHCP={{ item.dhcp | default(true) }}
LinkLocalAddressing=False
LLDP={{ item.lldp | default(true) }}
{% if item.vlans is defined -%}
{% for vlan in item.vlans -%}
VLAN={{ item.vlan }}
{% endfor -%}
{% endif -%}