Add LACP bond rate configuration
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
@@ -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'] }}
 | 
			
		||||
    bond-lacp-rate {{ network.value['bond_rate'] }}
 | 
			
		||||
{% endif %}
 | 
			
		||||
{% endif %}
 | 
			
		||||
{% if network.value['type'] == 'vlan' %}
 | 
			
		||||
    vlan_raw_device {{ network.value['raw_device'] }}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user