#479 attempt better cache control for device ports

This commit is contained in:
Oliver Gorwits
2019-01-07 22:47:13 +00:00
parent 23a87f19fd
commit 7f1074ff84
2 changed files with 6 additions and 8 deletions

View File

@@ -252,10 +252,6 @@ 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->all };
return Status->info(sprintf ' [%s] interfaces - added %d new interfaces',
$device->ip, scalar values %interfaces);
});