more useful to log the ID than the type (esp in homogeneous networks)
This commit is contained in:
1
Changes
1
Changes
@@ -3,6 +3,7 @@
|
|||||||
[ENHANCEMENTS]
|
[ENHANCEMENTS]
|
||||||
|
|
||||||
* Disable preventLabelOverlappingOnForceEnd on network neighbor map
|
* Disable preventLabelOverlappingOnForceEnd on network neighbor map
|
||||||
|
* Debug log the neighbor ID to help with problem diagnosis
|
||||||
|
|
||||||
[BUG FIXES]
|
[BUG FIXES]
|
||||||
|
|
||||||
|
|||||||
@@ -72,6 +72,9 @@ register_worker({ phase => 'main', driver => 'snmp' }, sub {
|
|||||||
subaction => 'with-nodes',
|
subaction => 'with-nodes',
|
||||||
($remote_id ? (device_key => $remote_id) : ()),
|
($remote_id ? (device_key => $remote_id) : ()),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
debug sprintf ' queue - queued device %s (ID: [%s])',
|
||||||
|
$ip, ($remote_id || '');
|
||||||
}
|
}
|
||||||
|
|
||||||
return Status->info(sprintf ' [%s] neigh - processed %s neighbors',
|
return Status->info(sprintf ' [%s] neigh - processed %s neighbors',
|
||||||
@@ -241,8 +244,8 @@ sub store_neighbors {
|
|||||||
|
|
||||||
# what we came here to do.... discover the neighbor
|
# what we came here to do.... discover the neighbor
|
||||||
debug sprintf
|
debug sprintf
|
||||||
' [%s] neigh - adding neighbor %s, type [%s], on %s to discovery queue',
|
' [%s] neigh - adding neighbor %s, ID [%s], on %s to discovery queue',
|
||||||
$device->ip, $remote_ip, ($remote_type || ''), $port;
|
$device->ip, $remote_ip, ($remote_id || ''), $port;
|
||||||
push @to_discover, [$remote_ip, $remote_type, $remote_id];
|
push @to_discover, [$remote_ip, $remote_type, $remote_id];
|
||||||
|
|
||||||
$remote_port = $c_port->{$entry};
|
$remote_port = $c_port->{$entry};
|
||||||
|
|||||||
Reference in New Issue
Block a user