14 lines
528 B
Plaintext
14 lines
528 B
Plaintext
|
# 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' %}
|
||
|
bond_mode {{ network.value['bond_mode'] }}
|
||
|
slaves {% for device in network.value['bond_devices'] %}{{ device }} {% endfor %}
|
||
|
{% endif %}
|
||
|
{% if network.value['type'] == 'vlan' %}
|
||
|
vlan_raw_device {{ network.value['raw_device'] }}
|
||
|
{% endif %}
|