servers/roles/proxmox/templates/interfaces.j2

21 lines
530 B
Plaintext
Raw Normal View History

{# 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 }}
auto vmbr{{ vlan.vid }}
iface vmbr{{ vlan.vid }}
# {{ vlan.name }}
bridge-vlan-aware no
bridge-ports vni{{ vlan.vid }}
bridge-stp off
bridge-fd 0
auto vni{{ vlan.vid }}
iface vni{{ vlan.vid }}
vxlan-id {{ vlan.vid }}
mstpctl-bpduguard yes
mstpctl-portbpdufilter yes
{% endfor %}
source /etc/network/interfaces.d/*