Safely continue macsuck if neighbor cannot be resolved

This commit is contained in:
Oliver Gorwits
2016-02-02 08:15:25 +00:00
parent a67057e288
commit 783382378f
2 changed files with 5 additions and 1 deletions

View File

@@ -374,7 +374,10 @@ sub _walk_fwtable {
if ($neigh_cannot_macsuck) {
debug sprintf
' [%s] macsuck %s - port %s neighbor %s without macsuck support',
$device->ip, $mac, $port, $device_port->neighbor->ip;
$device->ip, $mac, $port,
(eval { $device_port->neighbor->ip }
|| ($device_port->remote_ip
|| $device_port->remote_id || '?'));
# continue!!
}
elsif (my $neighbor = $device_port->neighbor) {