20 lines
431 B
Django/Jinja
20 lines
431 B
Django/Jinja
[Match]
|
|
Name={{ item.name | regex_replace('^[0-9]*-', '') | regex_replace('\.network', '') }}
|
|
|
|
[Link]
|
|
ARP={{ item.arp | default(true) }}
|
|
|
|
[Network]
|
|
DHCP={{ item.dhcp | default(true) }}
|
|
LinkLocalAddressing=False
|
|
LLDP={{ item.lldp | default(true) }}
|
|
{% if item.vlans is defined -%}
|
|
{% for vlan in item.vlans -%}
|
|
VLAN=vlan{{ vlan }}
|
|
{% endfor -%}
|
|
|
|
[BridgeVLAN]
|
|
{% for vlan in item.vlans -%}
|
|
VLAN={{ vlan }}
|
|
{% endfor -%}
|
|
{% endif -%} |