15 lines
353 B
Django/Jinja
15 lines
353 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 }}
|
|
{% endfor -%}
|
|
{% endif -%} |