servers/roles/proxmox/templates/interfaces.j2
Timotej Lazar 25bcddede1 Factor frr role from debian, ceph and proxmox
Consolidate base system and networking setup into debian role and BGP
configuration into frr role. Add facts role to collect data from NetBox
once to avoid many slow lookups. Also many other tweaks and cleanups.
2024-05-19 14:21:25 +02:00

21 lines
530 B
Django/Jinja

{# 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/*