2019-07-04 11:19:24 -04:00
|
|
|
# PVC node interface-specific interface file - {{ network.key }}
|
|
|
|
# {{ ansible_managed }}
|
|
|
|
|
|
|
|
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' %}
|
2021-10-10 02:31:47 -04:00
|
|
|
bond-mode {{ network.value['bond_mode'] }}
|
|
|
|
bond-slaves {{ network.value['bond_devices'] | join(' ') }}
|
2019-07-04 11:19:24 -04:00
|
|
|
{% endif %}
|
|
|
|
{% if network.value['type'] == 'vlan' %}
|
|
|
|
vlan_raw_device {{ network.value['raw_device'] }}
|
|
|
|
{% endif %}
|