any device completing macsuck/arpnip must have that layer
This commit is contained in:
@@ -34,7 +34,10 @@ register_worker({ phase => 'store' }, sub {
|
||||
debug sprintf ' [%s] arpnip - processed %s IPv6 Neighbor Cache entries',
|
||||
$device->ip, scalar @{ vars->{'v6arps'} };
|
||||
|
||||
$device->update({last_arpnip => \$now});
|
||||
$device->update({
|
||||
last_arpnip => \$now,
|
||||
layers => \[q{overlay(layers placing '1' from 6 for 1)}],
|
||||
});
|
||||
|
||||
my $status = $job->best_status;
|
||||
return Status->$status("Ended arpnip for $device");
|
||||
|
||||
@@ -92,7 +92,10 @@ 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});
|
||||
$device->update({
|
||||
last_macsuck => \$now,
|
||||
layers => \[q{overlay(layers placing '1' from 7 for 1)}],
|
||||
});
|
||||
return Status->done("Ended macsuck for $device");
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user