WAN Mode Page to configure this page." end if (ButtonType and ButtonType == "config") then local inputTable = web.cgiToLuaTable(cgi) errorFlag = "OK" -- if not allowed to edit if (ACCESS_LEVEL ~= 0) then NextPage = "lan2_setup_ipv6" errorFlag = "ERROR" statusCode = "ADMIN_REQD" end if(errorFlag == "OK") then local ifstatic = db.getRowsWhere("ifStatic","AddressFamily='10'") if(#ifstatic ~= 0) then local i = 0 for k,v in pairs(ifstatic) do i = i + 1 local ifstaticRow = ifstatic[i] if(ifstaticRow ~= nil) then if (inputTable["ifStaticAliasAddrTbl.StaticIp"] == ifstaticRow["ifStatic.StaticIp"]) then errorFlag, statusCode = "ERROR", "IP conflicting with "..ifstaticRow["ifStatic.LogicalIfName"] end end end end end --if add if(errorFlag == "OK") then errorFlag, statusCode = lanGroups.editLanMultiHoming (inputTable, RowId, "edit") end -- save db if no error if (errorFlag == "OK") then db.save() else NextPage = "lan2_setup_ipv6" end statusMessage = db.getAttribute("stringsMap", "stringId", statusCode, LANGUAGE) or statusCode web.goToPage(NextPage, true, true) else -- for error if (errorFlag ~= "OK") then configRowId = RowId end -- for Add if (configRowId == "-1") then configRow = db.getDefaults(true, "ifStaticAliasAddrTbl") -- for edit else configRow = db.getRow("ifStaticAliasAddrTbl","ifStaticAliasAddrTbl._ROWID_", configRowId) end ?> $|COMPANY_NAME|$ $|PRODUCT_FAMILY|$ - Edit LAN Multi-homing (IPv6)
 
Edit LAN (IPv6) Multi-homing
 
IPv6
IPv4
 
 
$| statusMessage|$
LAN Multi-homing Configuration
IPv6 Address:
Prefix Length: