1
0
IaC/ansible/roles/systemd_networkd/templates/bridge.network.j2

20 lines
431 B
Plaintext
Raw Normal View History

2023-08-09 12:37:28 +00:00
[Match]
2023-08-10 11:29:39 +00:00
Name={{ item.name | regex_replace('^[0-9]*-', '') | regex_replace('\.network', '') }}
2023-08-09 12:37:28 +00:00
[Link]
2023-08-10 11:29:39 +00:00
ARP={{ item.arp | default(true) }}
2023-08-09 12:37:28 +00:00
[Network]
2023-08-10 11:29:39 +00:00
DHCP={{ item.dhcp | default(true) }}
LinkLocalAddressing=False
LLDP={{ item.lldp | default(true) }}
{% if item.vlans is defined -%}
{% for vlan in item.vlans -%}
2023-08-14 12:27:29 +00:00
VLAN=vlan{{ vlan }}
{% endfor -%}
[BridgeVLAN]
{% for vlan in item.vlans -%}
2023-08-12 10:19:07 +00:00
VLAN={{ vlan }}
2023-08-10 11:29:39 +00:00
{% endfor -%}
{% endif -%}