false
#if re.match('.*\..*', $hostname)
## there is a domain
#set ($myhost,$mydomain) = $hostname.split(".",1)
$myhost
$mydomain
#else
## there is no domain
$hostname
site
#end if
#set ikeys = $interfaces.keys()
#import re
#for $iname in $ikeys
## create lots of variables to use later
#set $idata = $interfaces[$iname]
#set $mac = $idata["mac_address"].upper()
#set $macl = $idata["mac_address"].lower()
#set $static = $idata["static"]
#set $ip = $idata["ip_address"]
#set $netmask = $idata["subnet"]
#set $static_routes = $idata["static_routes"]
#set $bonding = $idata["bonding"]
#set $bonding_master = $idata["bonding_master"]
#set $bonding_opts = $idata["bonding_opts"]
#set $devfile = "/etc/sysconfig/network-scripts/cobbler/ifcfg-" + $iname
#set $routesfile = "/etc/sysconfig/network-scripts/cobbler/route-" + $iname
## $iname $macl
static
onboot
## eth-id-$macl
$iname
$ip
$netmask
#if $iname == 'eth0' and $getVar("eth0force100full","") != ""
autoneg off speed 100 duplex full
#end if
#if $iname == 'eth1' and $getVar("eth1force100full","") != ""
autoneg off speed 100 duplex full
#end if
#if $iname == 'eth2' and $getVar("eth2force100full","") != ""
autoneg off speed 100 duplex full
#end if
#if $iname == 'eth3' and $getVar("eth3force100full","") != ""
autoneg off speed 100 duplex full
#end if
#if $iname == 'eth4' and $getVar("eth4force100full","") != ""
autoneg off speed 100 duplex full
#end if
#if $iname == 'eth5' and $getVar("eth5force100full","") != ""
autoneg off speed 100 duplex full
#end if
#end for