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 iface {{ network.value['device'] }} inet manual
post-up ip link set $IFACE mtu {{ network.value['mtu'] }} post-up ip link set $IFACE mtu {{ network.value['mtu'] }}
{% if network.value['type'] == 'bond' %} {% if network.value['type'] == 'bond' %}
bond_mode {{ network.value['bond_mode'] }} bond-mode {{ network.value['bond_mode'] }}
slaves {% for device in network.value['bond_devices'] %}{{ device }} {% endfor %} bond-slaves {{ network.value['bond_devices'] | join(' ') }}
{% 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'] }}