#set($module="properties")
#set($continents = [ "Africa", "Asia", "Latin America", "Europe", "Germany" ])
#set($continent_numbers = [ 72,73,74,71,75 ])
#set($continent_index=$continents.indexOf($params.continent))
#set($computer = $params.computer)
#set($continent_number = $continent_numbers[$continent_index])
#if($params.wan_type=='Routed-Static')
#set($wan_type="Routed")
#set($dhcp="false")
#elseif($params.wan_type == "Routed-DHCP")
#set($wan_type="Routed")
#set($dhcp="true")
#elseif($params.wan_type == "PPPoE")
#set($wan_type="Pppoe")
#set($dhcp="false")
#else
#set($wan_type="unknown")
#set($dhcp="false")
#end
#if($params.pppoe_usepeerdns)
#set($peerdns="true")
#else
#set($peerdns="false")
#end
#set($zone=$params.continent.toLowerCase().replace(" ","-"))
#set($shortname=$params.computer)
#set($i=$shortname.indexOf('.'))
#if($i!=-1)
#set($shortname=$shortname.substring(0,$i))
#end
#set($dnszone="${shortname}.${zone}.a-net.de")
##
#save_computer_property($computer,"shortname",$shortname)
#save_computer_property($computer,"dnszone",$dnszone)
#save_computer_property($computer,"continent",$params.continent)
#save_computer_property($computer,"continent_number","$continent_number")
#save_computer_property($computer,"network_number",$params.network_number)
#save_computer_property($computer,"wan_type",$wan_type)
#save_computer_property($computer,"dhcp",$dhcp)
#save_computer_property($computer,"routed_ip",$params.routed_ip)
#save_computer_property($computer,"routed_netmask",$params.routed_netmask)
#save_computer_property($computer,"pppoe_user",$params.pppoe_user)
#save_computer_property($computer,"pppoe_password",$params.pppoe_password)
#save_computer_property($computer,"pppoe_usepeerdns",$peerdns)
#save_computer_property($computer,"pppoe_mtu",$params.pppoe_mtu)
#save_computer_property($computer,"external_dns",$params.external_dns)
#return_to_index($module)
