summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Hostbase/templates/hostsappend.tmpl
blob: 0ebd67aee00bcb15c2f70fd017a352e223da7194 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#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