Hi,
I am having a problem with my snippet file which is;
#import late_command
#set $script = ""
##
##
#set ikeys = $interfaces.keys()
#######################################
## configuring /etc/dhcp/dhclient.conf
#######################################
#set $script += "### configuring interfaces ###\n"
#set $dhclient_file = "/etc/dhcp/dhclient.conf"
#for $iname in $ikeys
#set $idata = $interfaces[$iname]
#if $idata.get("static", "0") in ("0", False, "false")
#set $script += "echo 'interface \"%s\" {' >> %s\n" % ($iname, $dhclient_file)
#if len($idata.get("dhcp_tag", "")) > 0
#set $script += "echo 'send user-class = \"%s\";' >> %s\n" % ($idata["dhcp_tag"], $dhclient_file)
#end if
#if len($idata.get("dns_name", "")) > 0
#set $script += "echo 'send host-name = \"%s\";' >> %s\n" % ($idata["dns_name"], $dhclient_file)
#end if
#set $script += "echo 'request subnet-mask, broadcast-address, time-offset,' >> %s\n" % $dhclient_file
#set $script += "echo ' domain-name, domain-name-servers, domain-search, host-name,' >> %s\n" % $dhclient_file
#set $script += "echo ' netbios-name-servers, netbios-scope, interface-mtu,' >> %s\n" % $dhclient_file
#set $script += "echo ' rfc3442-classless-static-routes, ntp-servers;' >> %s\n" % $dhclient_file
#set $script += "echo '}' >> %s\n" % $dhclient_file
#end if
#set $script += "echo >> %s\n" % $dhclient_file
#end for
#set $script += "\n"
in-target $late_command.late_command($script, source_method="content") \