fabric: consolidate interface templates

Mostly to avoid special‐casing bond interfaces, and to support BGP
connections over virtual interfaces.
This commit is contained in:
Timotej Lazar 2024-02-27 10:59:06 +01:00
parent 5381fecaa4
commit ce7c1bd49e
6 changed files with 28 additions and 40 deletions

View file

@ -10,7 +10,7 @@ auto {{ bridge.name }}
iface {{ bridge.name }}
bridge-ports {{ ports | map(attribute='name') | join(' ') }}{% if my_vlans %} vxlan{% endif +%}
bridge-vlan-aware yes
bridge-pvid 1
bridge-pvid {{ bridge.untagged_vlan | default(1, true) }}
{% if bridge.mode.value == 'tagged' and my_vlans %}
bridge-vids {{ my_vlan_ids | join(' ') }}
{% endif %}