only set layer if successful action

This commit is contained in:
Oliver Gorwits
2019-09-01 18:39:22 +01:00
parent b108be5e23
commit a267efa3d8
2 changed files with 17 additions and 21 deletions

View File

@@ -92,10 +92,7 @@ register_worker({ phase => 'main', driver => 'snmp' }, sub {
debug sprintf ' [%s] macsuck - removed %d fwd table entries to archive',
$device->ip, $archived;
$device->update({
last_macsuck => \$now,
layers => \[q{overlay(layers placing '1' from 7 for 1)}],
});
$device->update({last_macsuck => \$now});
return Status->done("Ended macsuck for $device");
});