Replace calls to getResolvedAddress with host2name

This commit is contained in:
emanuele-f 2020-03-31 11:52:50 +02:00
parent 4b1184acdb
commit 02c36d4140
17 changed files with 73 additions and 45 deletions

View file

@ -703,7 +703,7 @@ function alerts_api.remoteToRemoteType(host_info, mac)
alert_type = alert_consts.alert_types.alert_remote_to_remote,
alert_severity = alert_consts.alert_severities.warning,
alert_type_params = {
host = getResolvedAddress(host_info),
host = host2name(host_info["host"], host_info["vlan"]),
mac = mac,
},
})
@ -719,7 +719,7 @@ function alerts_api.ipOutsideDHCPRangeType(router_info, mac, client_mac, sender_
alert_type_params = {
router_info = hostinfo2hostkey(router_info),
mac = mac, client_mac = client_mac, sender_mac = sender_mac,
router_host = getResolvedAddress(router_info),
router_host = host2name(router_info["host"], router_info["vlan"]),
},
})
end