2024-05-18 16:35:41 +00:00
|
|
|
{# bridges must be named vmbrN for proxmox to care #}
|
|
|
|
{% for vlan in cluster.custom_fields.vlans | default([], true) | sort(attribute='vid') %}
|
|
|
|
# bridge and VNI for {{ vlan.name }}
|
2024-02-20 15:40:13 +00:00
|
|
|
auto vmbr{{ vlan.vid }}
|
2024-05-05 10:56:58 +00:00
|
|
|
iface vmbr{{ vlan.vid }}
|
2024-02-20 15:40:13 +00:00
|
|
|
# {{ vlan.name }}
|
|
|
|
bridge-vlan-aware no
|
|
|
|
bridge-ports vni{{ vlan.vid }}
|
2023-10-18 13:01:02 +00:00
|
|
|
bridge-stp off
|
|
|
|
bridge-fd 0
|
|
|
|
|
2024-02-20 15:40:13 +00:00
|
|
|
auto vni{{ vlan.vid }}
|
2024-05-05 10:56:58 +00:00
|
|
|
iface vni{{ vlan.vid }}
|
2024-02-20 15:40:13 +00:00
|
|
|
vxlan-id {{ vlan.vid }}
|
2023-10-18 13:01:02 +00:00
|
|
|
mstpctl-bpduguard yes
|
|
|
|
mstpctl-portbpdufilter yes
|
|
|
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
source /etc/network/interfaces.d/*
|