Update bondX configuration
This commit is contained in:
parent
2c0e09f657
commit
5ab40fa15f
|
@ -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'] }}
|
||||||
|
|
Loading…
Reference in New Issue