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.checkStringLength(1,32,inputTable["IPMACBinding.Name"],"Name Error") end, --function() return validations.ipAddressValidate(inputTable["IPMACBinding.IPAddress"],"","IP Address Error") end, function() return validations.macAddressValidate(inputTable["IPMACBinding.SourceMACAddress"],"MAC Address 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 -- for add if(RowId == "-1") then errorFlag, statusCode = fwView.ipMacConfig(inputTable, RowId, "add") -- for edit else errorFlag, statusCode = fwView.ipMacConfig(inputTable, RowId, "edit") end -- save db if no error if (errorFlag == "OK") then db.save() end statusMessage = db.getAttribute("stringsMap", "stringId", statusCode, LANGUAGE) end web.goToPage(NextPage, true, true) else local xssRow = {} -- for error if (errorFlag ~= "OK") then configRowId = RowId end local IPMACBindingIp = {} local ipMacNameEdit = "" -- for Add if (configRowId == "-1") then configRow = db.getDefaults(true, "IPMACBinding") -- for edit else ipMacNameEdit="DISABLED" configRow = db.getRow("IPMACBinding","IPMACBinding._ROWID_", configRowId) xssRow = util.xssEncoding(configRow) end ?> $|COMPANY_NAME|$ $|PRODUCT_FAMILY|$ - Edit IP/MAC Binding (IPv6)
 
Edit IP/MAC Binding
 
IPv6
IPv4
 
 
$| statusMessage|$
IP/MAC Binding Configuration
Name: $| xssRow["IPMACBinding.Name"] or '' |$
MAC Address:
IP Address:
Log Dropped Packets: