summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Hostbase/templates/hostsappend.tmpl
diff options
context:
space:
mode:
authorKen Raffenetti <raffenet@mcs.anl.gov>2006-08-29 16:33:36 +0000
committerKen Raffenetti <raffenet@mcs.anl.gov>2006-08-29 16:33:36 +0000
commit510c55e843ea0a1c049b39a9f57ff044190fcbd9 (patch)
tree5e82a8238779a088147ff61efc0db305be76a1f7 /src/lib/Server/Hostbase/templates/hostsappend.tmpl
parentdbc96682be8968aac8ca8f8727728d60609f732c (diff)
downloadbcfg2-510c55e843ea0a1c049b39a9f57ff044190fcbd9.tar.gz
bcfg2-510c55e843ea0a1c049b39a9f57ff044190fcbd9.tar.bz2
bcfg2-510c55e843ea0a1c049b39a9f57ff044190fcbd9.zip
Added all the django application code
includes database models, file templates, and web apps git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2135 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Hostbase/templates/hostsappend.tmpl')
-rw-r--r--src/lib/Server/Hostbase/templates/hostsappend.tmpl19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/lib/Server/Hostbase/templates/hostsappend.tmpl b/src/lib/Server/Hostbase/templates/hostsappend.tmpl
new file mode 100644
index 000000000..0ebd67aee
--- /dev/null
+++ b/src/lib/Server/Hostbase/templates/hostsappend.tmpl
@@ -0,0 +1,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
+