WAN Mode Page to configure this page." 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.isEmpty(inputTable["route6.routeName"],"Route name error") end, function() return validations.ipv6AddrValidate(inputTable["route6.dstIpAddr"],"IPv6 Error") end, function() return validations.preLenChk(inputTable["route6.prefix"],"Prefix error") end, function() return validations.ipv6AddrValidate(inputTable["route6.gwIpAddr"],"Gateway error") end, function() return validations.v6MetricChk(inputTable["route6.metric"],"Metric error") 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 if (RowId == "-1") then errorFlag, statusMessage = iproute.ipv6Config(inputTable, "-1", "add") else errorFlag, statusMessage = iproute.ipv6Config(inputTable, RowId, "edit") end -- save db if no error if (errorFlag == "OK") then db.save() end end web.goToPage(NextPage, true, true) else editDisable = "" -- for error if (errorFlag ~= "OK") then configRowId = RowId end -- for Add if (configRowId == "-1") then configRow = db.getDefaults(true, "route6") -- for edit else configRow = db.getRow("route6", "_ROWID_", configRowId) editDisable = "readonly" end ?> $|COMPANY_NAME|$ $|PRODUCT_FAMILY|$ - WAN Mode
 
IPv6 Static Routing
 
IPv6
IPv4
 
 
$| statusMessage|$
IPv6 Static Route Configuration
Route Name:
Active:
IPv6 Destination:
IPv6 Prefix Length:
Interface:
IPv6 Gateway:
Metric: