mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: empty mac adds an entry to the arp table (#5270)
This commit is contained in:
committed by
Neil Lathwood
parent
4671fb48ab
commit
f01ea381ed
@ -59,7 +59,7 @@ foreach ($vrfs_lite_cisco as $vrf) {
|
||||
$interface = get_port_by_index_cache($device['device_id'], $if);
|
||||
$port_id = $interface['port_id'];
|
||||
|
||||
if (!empty($ip) && $ipv === 'ipv4' && $raw_mac != '0:0:0:0:0:0' && !isset($arp_table[$port_id][$ip])) {
|
||||
if (!empty($ip) && $ipv === 'ipv4' && !empty($raw_mac) && $raw_mac != '0:0:0:0:0:0' && !isset($arp_table[$port_id][$ip])) {
|
||||
$mac = implode(array_map('zeropad', explode(':', $raw_mac)));
|
||||
$arp_table[$port_id][$ip] = $mac;
|
||||
|
||||
|
Reference in New Issue
Block a user