mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Move C alerts to unified alerts_queue
This commit is contained in:
parent
e4a67824c1
commit
d38cd23615
12 changed files with 173 additions and 240 deletions
|
|
@ -381,7 +381,7 @@ function alerts_api.release(entity_info, type_info, when)
|
|||
end
|
||||
|
||||
if(type_info.alert_severity == nil) then
|
||||
alertErrorTraceback("Missing alert_severity")
|
||||
alertErrorTraceback(string.format("Missing alert_severity [type=%s]", type_info.alert_type and type_info.alert_type.alert_id or ""))
|
||||
return(false)
|
||||
end
|
||||
|
||||
|
|
@ -717,7 +717,7 @@ end
|
|||
function alerts_api.broadcastDomainTooLargeType(src_mac, dst_mac, vlan, spa, tpa)
|
||||
return({
|
||||
alert_type = alert_consts.alert_types.broadcast_domain_too_large,
|
||||
alert_severity = alert_consts.alert_severities.error,
|
||||
alert_severity = alert_consts.alert_severities.warning,
|
||||
alert_type_params = {
|
||||
src_mac = src_mac, dst_mac = dst_mac,
|
||||
spa = spa, tpa = tpa, vlan_id = vlan,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue