#475 fix discover plugins do not respect ignore* config
This commit is contained in:
@@ -252,6 +252,10 @@ register_worker({ phase => 'early', driver => 'snmp' }, sub {
|
||||
$device->update_or_insert(undef, {for => 'update'});
|
||||
$device->ports->populate([values %interfaces]);
|
||||
|
||||
# cache for later phases of the discovery
|
||||
vars->{'device_ports'} = { map {($_->port => $_)}
|
||||
$device->ports->search(undef, {columns => 'port'})->all };
|
||||
|
||||
return Status->info(sprintf ' [%s] interfaces - added %d new interfaces',
|
||||
$device->ip, scalar values %interfaces);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user