Set broadcast domain alert entity to the sender mac

This commit is contained in:
emanuele-f 2019-07-23 10:04:23 +02:00
parent 09e560cacc
commit fa5605df6a

View file

@ -2331,7 +2331,7 @@ end
-- Global function
function check_broadcast_domain_too_large_alerts()
local alert = alerts:newAlert({
entity = "interface",
entity = "mac",
type = "broadcast_domain_too_large",
severity = "warning",
})
@ -2347,7 +2347,7 @@ function check_broadcast_domain_too_large_alerts()
elems = json.decode(message)
if elems ~= nil then
local entity_value = "iface_"..elems.ifid
local entity_value = elems.src_mac
--io.write(elems.ip.." ==> "..message.."[".. elems.ifname .."]\n")
interface.select(elems.ifname)