Safely continue macsuck if neighbor cannot be resolved
This commit is contained in:
@@ -9,6 +9,7 @@
|
|||||||
* [#255] undefined host error in netdisco-do psql
|
* [#255] undefined host error in netdisco-do psql
|
||||||
* [#250] Linux SSHColletor cannot handle uppercase MACs
|
* [#250] Linux SSHColletor cannot handle uppercase MACs
|
||||||
* Return from device discover if device is unknown
|
* Return from device discover if device is unknown
|
||||||
|
* Safely continue macsuck if neighbor cannot be resolved
|
||||||
|
|
||||||
2.033004 - 2015-11-16
|
2.033004 - 2015-11-16
|
||||||
|
|
||||||
|
|||||||
@@ -374,7 +374,10 @@ sub _walk_fwtable {
|
|||||||
if ($neigh_cannot_macsuck) {
|
if ($neigh_cannot_macsuck) {
|
||||||
debug sprintf
|
debug sprintf
|
||||||
' [%s] macsuck %s - port %s neighbor %s without macsuck support',
|
' [%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!!
|
# continue!!
|
||||||
}
|
}
|
||||||
elsif (my $neighbor = $device_port->neighbor) {
|
elsif (my $neighbor = $device_port->neighbor) {
|
||||||
|
|||||||
Reference in New Issue
Block a user