19 lines
374 B
Django/Jinja
19 lines
374 B
Django/Jinja
# ANSIBLE MANAGED FILE - DO NOT MANUALLY EDIT
|
|
#
|
|
[NetDev]
|
|
Name={{ item.key }}
|
|
type={{ item.value.type }}
|
|
|
|
{% if item.value.type.lower() == 'bond' %}
|
|
[Bond]
|
|
Mode={{ item.value.bond_mode | default('balance-rr') }}
|
|
PrimaryReselectPolicy=always
|
|
MIIMonitorSec=1s
|
|
{% endif %}
|
|
{% if item.value.type.lower() == 'vlan' %}
|
|
[VLAN]
|
|
Id={{ item.key.partition('.')[2] }}
|
|
{% endif %}
|
|
|
|
# EOF
|