Rename housekeeping expiry task to be expire
This commit is contained in:
@@ -23,7 +23,7 @@ sub capacity_for {
|
||||
|
||||
my $action_map = {
|
||||
Poller => [
|
||||
qw/discoverall discover arpwalk arpnip macwalk macsuck nbtstat nbtwalk expiry/
|
||||
qw/discoverall discover arpwalk arpnip macwalk macsuck nbtstat nbtwalk expire/
|
||||
],
|
||||
Interactive => [qw/location contact portcontrol portname vlan power/],
|
||||
};
|
||||
|
||||
@@ -13,7 +13,7 @@ my $fqdn = hostfqdn || 'localhost';
|
||||
|
||||
my $role_map = {
|
||||
(map {$_ => 'Poller'}
|
||||
qw/discoverall discover arpwalk arpnip macwalk macsuck nbtstat nbtwalk expiry/),
|
||||
qw/discoverall discover arpwalk arpnip macwalk macsuck nbtstat nbtwalk expire/),
|
||||
(map {$_ => 'Interactive'}
|
||||
qw/location contact portcontrol portname vlan power/)
|
||||
};
|
||||
|
||||
@@ -9,7 +9,7 @@ use Role::Tiny;
|
||||
use namespace::clean;
|
||||
|
||||
# expire devices and nodes according to config
|
||||
sub expiry {
|
||||
sub expire {
|
||||
my ($self, $job) = @_;
|
||||
|
||||
if (setting('expire_devices') and setting('expire_devices') > 0) {
|
||||
|
||||
@@ -15,7 +15,7 @@ my $jobactions = {
|
||||
arpwalk
|
||||
macwalk
|
||||
nbtwalk
|
||||
expiry
|
||||
expire
|
||||
/
|
||||
# saveconfigs
|
||||
# backup
|
||||
|
||||
Reference in New Issue
Block a user