Stabilize discovery workflow
This commit is contained in:
@@ -48,9 +48,15 @@ class MergeSuggestionService
|
||||
}
|
||||
}
|
||||
|
||||
// Low confidence: IP match
|
||||
if ($host->primaryIp !== null) {
|
||||
// Would need findByIp in repository — skip for now
|
||||
if ($host->ipAddress !== '') {
|
||||
$device = $this->deviceRepository->findByIp($host->ipAddress);
|
||||
if ($device !== null) {
|
||||
$suggestions[] = [
|
||||
'device' => $device,
|
||||
'confidence' => 40,
|
||||
'reason' => 'IP адрес совпадает',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
return $suggestions;
|
||||
|
||||
Reference in New Issue
Block a user