Update bondX configuration

This commit is contained in:
Joshua Boniface 2023-09-01 15:42:27 -04:00
parent 4cb2d7835c
commit 5f05835721
1 changed files with 2 additions and 2 deletions

View File

@ -5,8 +5,8 @@ auto {{ network.value['device'] }}
iface {{ network.value['device'] }} inet manual
post-up ip link set $IFACE mtu {{ network.value['mtu'] }}
{% if network.value['type'] == 'bond' %}
bond_mode {{ network.value['bond_mode'] }}
slaves {% for device in network.value['bond_devices'] %}{{ device }} {% endfor %}
bond-mode {{ network.value['bond_mode'] }}
bond-slaves {{ network.value['bond_devices'] | join(' ') }}
{% endif %}
{% if network.value['type'] == 'vlan' %}
vlan_raw_device {{ network.value['raw_device'] }}