Rename housekeeping expiry task to be expire

This commit is contained in:
Oliver Gorwits
2014-03-11 21:49:39 +00:00
parent 47d712490e
commit ac97d92ef1
10 changed files with 25 additions and 16 deletions

View File

@@ -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/],
};

View File

@@ -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/)
};

View File

@@ -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) {

View File

@@ -15,7 +15,7 @@ my $jobactions = {
arpwalk
macwalk
nbtwalk
expiry
expire
/
# saveconfigs
# backup