routed neighbors only queue if not also l2 neighbor

This commit is contained in:
Oliver Gorwits
2018-02-11 21:54:28 +00:00
parent a822675eb6
commit c1f9033125
3 changed files with 10 additions and 9 deletions

View File

@@ -70,7 +70,7 @@ register_worker({ phase => 'early', driver => 'snmp' }, sub {
if ($device->ip ne $db_device->ip) {
return schema('netdisco')->txn_do(sub {
$device->delete;
return $job->cancel("fresh discover cancelled: $device already known");
return $job->cancel("fresh discover cancelled: $device already known as $db_device");
});
}