Add LACP bond rate configuration
This commit is contained in:
@@ -179,6 +179,7 @@ networks:
|
|||||||
bond_devices:
|
bond_devices:
|
||||||
- enp1s0f0
|
- enp1s0f0
|
||||||
- enp1s0f1
|
- 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
|
mtu: 9000 # Forms a post-up ip link set $IFACE mtu statement; a high MTU is recommended for optimal backend network performance
|
||||||
upstream:
|
upstream:
|
||||||
device: vlan1000
|
device: vlan1000
|
||||||
|
@@ -14,6 +14,9 @@ iface {{ network.value['device'] }} inet {{ network.value['mode']|default('manua
|
|||||||
{% if network.value['type'] == 'bond' %}
|
{% if network.value['type'] == 'bond' %}
|
||||||
bond-mode {{ network.value['bond_mode'] }}
|
bond-mode {{ network.value['bond_mode'] }}
|
||||||
bond-slaves {{ network.value['bond_devices'] | join(' ') }}
|
bond-slaves {{ network.value['bond_devices'] | join(' ') }}
|
||||||
|
{% if network.value['bond_rate'] is defined %}
|
||||||
|
bond-lacp-rate {{ network.value['bond_rate'] }}
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if network.value['type'] == 'vlan' %}
|
{% if network.value['type'] == 'vlan' %}
|
||||||
vlan_raw_device {{ network.value['raw_device'] }}
|
vlan_raw_device {{ network.value['raw_device'] }}
|
||||||
|
Reference in New Issue
Block a user