= 32) then statusMessage = "Can't add configuration to this table. Maximum limit reached." NextPage = "bandwidth_profile" end end web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "edit") then configRowId = RowId web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "delete") then local field, splitted, rows = web.cgiSearch(cgi, "BandWidthProfile") -- if any rows to delete if (rows) then errorFlag, statusCode = bwProfiles.deleteProfiles (rows) end -- save db if no error if (errorFlag == "OK") then db.save() end statusMessage = db.getAttribute("stringsMap", "stringId", statusCode, LANGUAGE) web.goToPage(NextPage, true, true) else configRow = {} configRow = db.getRow("BandWidthProfileStatus", "_ROWID_", "1") local bwPktCountScript = db.getAttribute("environment","name","BW_LIMIT_PKT_CNT_SCRIPT","value") if ( bwPktCountScript ~= nil ) then os.execute(bwPktCountScript) end local bwLimitPktCnt = "" local bwPktCountFile = db.getAttribute("environment","name","BW_LIMIT_PKT_CNT_FILE","value") if (bwPktCountFile ~= nil) then local f = assert(io.open(bwPktCountFile,"r")) while true do local line = f:read("*line") if line == nil then break end bwLimitPktCnt = bwLimitPktCnt .. line end assert(f:close()) end local prog = db.getAttribute("environment", "name", "HW_OFFLOAD_SCRIPT", "value") if (prog ~= nil) then util.appendDebugOut("Exec = " .. os.execute(prog .. " " .. DB_FILE_NAME )) end ?> $| COMPANY_NAME |$ $|PRODUCT_FAMILY|$ - Bandwidth Profiles
 
Bandwidth Profiles
 
IPv6
IPv4
 
 
$| statusMessage |$
Bandwidth Profiles
Enable Bandwidth Profiles?
Yes
No
 
 
 
List of Bandwidth Profile
  Name Inbound Bandwidth Range(Kbps) Outbound Bandwidth Range(Kbps) Type Direction Action
$|row["BandWidthProfile.ProfileName"]|$ $| inRange |$ $| outRange or ''|$ $| group |$ $| direction |$
Packets Dropped due to Bandwidth Limit: $| bwLimitPktCnt or ''|$