1
0
IaC/ansible/roles/systemd_networkd/templates/bridge.network.j2
2023-08-12 20:19:07 +10:00

15 lines
353 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={{ vlan }}
{% endfor -%}
{% endif -%}