Add LACP bond rate configuration

This commit is contained in:
2025-09-14 23:16:54 -04:00
parent ecbaaa39a1
commit 5644cd2feb
2 changed files with 4 additions and 0 deletions

View File

@@ -179,6 +179,7 @@ networks:
bond_devices:
- enp1s0f0
- enp1s0f1
bond_rate: slow # for 802.3ad (LACP) only, set rate: fast/slow[default]
mtu: 9000 # Forms a post-up ip link set $IFACE mtu statement; a high MTU is recommended for optimal backend network performance
upstream:
device: vlan1000

View File

@@ -14,6 +14,9 @@ iface {{ network.value['device'] }} inet {{ network.value['mode']|default('manua
{% if network.value['type'] == 'bond' %}
bond-mode {{ network.value['bond_mode'] }}
bond-slaves {{ network.value['bond_devices'] | join(' ') }}
{% if network.value['bond_rate'] is defined %}
bond-lacp-rate {{ network.value['bond_rate'] }}
{% endif %}
{% endif %}
{% if network.value['type'] == 'vlan' %}
vlan_raw_device {{ network.value['raw_device'] }}