Update bondX configuration

This commit is contained in:
Joshua Boniface 2021-10-10 02:31:47 -04:00
parent 2c0e09f657
commit 5ab40fa15f
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'] }}