more useful to log the ID than the type (esp in homogeneous networks)
This commit is contained in:
@@ -72,6 +72,9 @@ register_worker({ phase => 'main', driver => 'snmp' }, sub {
|
||||
subaction => 'with-nodes',
|
||||
($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',
|
||||
@@ -241,8 +244,8 @@ sub store_neighbors {
|
||||
|
||||
# what we came here to do.... discover the neighbor
|
||||
debug sprintf
|
||||
' [%s] neigh - adding neighbor %s, type [%s], on %s to discovery queue',
|
||||
$device->ip, $remote_ip, ($remote_type || ''), $port;
|
||||
' [%s] neigh - adding neighbor %s, ID [%s], on %s to discovery queue',
|
||||
$device->ip, $remote_ip, ($remote_id || ''), $port;
|
||||
push @to_discover, [$remote_ip, $remote_type, $remote_id];
|
||||
|
||||
$remote_port = $c_port->{$entry};
|
||||
|
||||
Reference in New Issue
Block a user