diff options
Diffstat (limited to 'src/lib/Server/Hostbase/templates/hostsappend.tmpl')
-rw-r--r-- | src/lib/Server/Hostbase/templates/hostsappend.tmpl | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/src/lib/Server/Hostbase/templates/hostsappend.tmpl b/src/lib/Server/Hostbase/templates/hostsappend.tmpl index 0ebd67aee..00e0d5d04 100644 --- a/src/lib/Server/Hostbase/templates/hostsappend.tmpl +++ b/src/lib/Server/Hostbase/templates/hostsappend.tmpl @@ -1,19 +1,5 @@ -#raw########################################################################## -#end raw -# Hosts on subnet: ${subnet[0]} -# total hosts: ${subnet[1]} -#for $ip in $ips -${ip[0]} ${ip[1]} #slurp -#if $ip[4] and not $ip[3]: -# $ip[5] -#else -#for $name in $ip[2] -${name.split('.', 1)[0]} #slurp -#end for -#for $cname in $ip[3] -${cname.split('.', 1)[0]} #slurp -#end for -# $ip[5] -#end if -#end for - +########################################################################## +# Hosts on subnet: {{ subnet.0 }} +# total hosts: {{ subnet.1 }} +{% for ip in ips %}{{ ip.0 }} {{ ip.1 }}{% if ip.4 and not ip.3 %} # {{ ip.5 }}{% else %}{% for name in ip.2 %} {{ name }}{% endfor %}{% for cname in ip.3 %} {{ cname }}{% endfor %} # {{ ip.5 }}{% endif %} +{% endfor %} |