­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ {%- from 'libvirt_macros.jinja' import opt_attribute as opt_attribute -%} {{ name }} {%- if bridge %} {%- endif %} {%- if mtu %} {%- endif %} {%- if domain %} {%- endif %} {%- if forward %} {%- endif %} {%- if nat %} {%- if nat.address %}
{%- endif %} {%- if nat.port %} {%- endif %} {%- endif %} {%- for iface in interfaces %} {%- endfor %} {%- for addr in addresses %}
{%- endfor %} {%- if pf %} {%- endif %} {%- if forward %} {%- endif %} {%- if vport %} {%- if vport.parameters %} {%- endif %} {%- endif %} {%- if vlan %} {%- for tag in vlan.tags %} {%- endfor %} {%- endif %} {%- if dns %} {%- for forwarder in dns.forwarders %} {%- endfor %} {%- for key in dns.txt.keys()|sort %} {%- endfor %} {%- for ip in dns.hosts.keys()|sort %} {%- for hostname in dns.hosts[ip] %} {{ hostname }} {%- endfor %} {%- endfor %} {%- for srv in dns.srvs %} {%- endfor %} {%- endif %} {%- for ip_config in ip_configs %} {%- for range in ip_config.dhcp_ranges %} {%- endfor %} {%- for ip in ip_config.hosts.keys()|sort %} {%- set host = ip_config.hosts[ip] %} {%- endfor %} {%- if ip_config.bootp %} {%- endif %} {%- if ip_config.tftp %} {%- endif %} {%- endfor %}