WAN Mode Page to configure this page." end if (cgi.wanRow ~= nil) then configRowId = cgi.wanRow end if (ButtonType and ButtonType == "config") then local inputTable = web.cgiToLuaTable(cgi) --automation part begin local tableIndex = 1 local errorFlag = "OK" validationTable = { function() return validations.checkboxValidate(inputTable["NimfConf.ConnectionType6"],"ifStatic6",5) end, function() return validations.ipv6AddrValidate(inputTable["ifStatic.StaticIp"],"IPv6 error") end, function() return validations.preLenChk(inputTable["ifStatic.PrefixLength"],"Prefix length error") end, function() return validations.ipv6AddrValidate(inputTable["ifStatic.Gateway"],"Gateway error") end, function() return validations.ipv6AddrValidate(inputTable["ifStatic.PrimaryDns"],"Primanry DNS error") end, function() return validations.ipv6AddrValidate(inputTable["ifStatic.SecondaryDns"],"Secondary DNS error","skip") end, function() return validations.checkboxValidate(inputTable["NimfConf.ConnectionType6"],"pppoe6",3) end, function() return validations.checkboxValidate(inputTable["Pppoe6.Dhcpv6Opt"],"0",2) end, function() return validations.ipv6AddrValidate(inputTable["Pppoe6.PrimaryDns"],"Primanry DNS error") end, function() return validations.ipv6AddrValidate(inputTable["Pppoe6.SecondaryDns"],"Secondary DNS error","skip") end } while (tableIndex <= #(validationTable)) do validationFunc = validationTable[tableIndex] errorFlag, statusCode,field,skipValidations = validationFunc() if(errorFlag==1 or errorFlag == "ERROR") then statusMessage = db.getAttribute("stringsMap", "stringId", statusCode, LANGUAGE) or statusCode statusMessage = field .. ": " .. statusMessage break end if(skipValidations ~= "") then tableIndex = tableIndex + skipValidations + 1 else tableIndex = tableIndex + 1 end end if(errorFlag == "OK" or errorFlag == 0) then local wanName = "WAN" .. RowId util.appendDebugOut("WAN Name.."..wanName); inputTable["NimfConf.LogicalIfName"] = wanName errorFlag, statusCode = nimfView.ipv6WanConfig(inputTable, RowId, "edit") -- save db if no error if (errorFlag == "OK") then db.save() end -- save db if no error if (errorFlag == "OK") then STATUS_CLASS = SUCCESS_CLASS db.save() elseif (errorFlag == "ERROR") then STATUS_CLASS = ERROR_CLASS else STATUS_CLASS = INFO_CLASS end statusMessage = db.getAttribute("stringsMap", "stringId", statusCode, LANGUAGE) or statusCode end web.goToPage(NextPage, true, true) else if (errorFlag ~= "OK" or configRowId == "-1") then configRowId = RowId end local wanName = "WAN"..configRowId configRow = nimfView.ipv6WanConfigGet (wanName) ?> $|COMPANY_NAME|$ $|PRODUCT_FAMILY|$ - $|wanName|$ ISP Settings
 
$| wanName |$ IPv6 ISP Settings
 
IPv6
IPv4
 
 
$| statusMessage|$
Internet Address
IPv6:
 
 
IStatic IP Address
IPv6 Address:
IPv6 Prefix Length:
Default IPv6 Gateway:
Primary DNS Server:
Secondary DNS Server:
 
 
DHCPv6
Stateless Address Auto Configuration:
Stateful Address Auto Configuration:
Prefix Delegation:
 
 
PPPoE IPv6
User Name:
Password:
DHCPv6 Option:
Primary DNS Server:
Secondary DNS Server: