rename discoverall to discovernew

This commit is contained in:
Oliver Gorwits
2013-04-13 15:23:52 +01:00
parent 1b897e4aee
commit ca9edd114a
5 changed files with 6 additions and 6 deletions

View File

@@ -33,7 +33,7 @@ sub capacity_for {
debug "checking local capacity for action $action";
my $action_map = {
Poller => [qw/refresh discover discoverall discover_neighbors/],
Poller => [qw/refresh discover discovernew discover_neighbors/],
Interactive => [qw/location contact portcontrol portname vlan power/],
};

View File

@@ -14,7 +14,7 @@ my $fqdn = hostfqdn || 'localhost';
my $role_map = {
(map {$_ => 'Poller'}
qw/refresh discover discoverall discover_neighbors/),
qw/refresh discover discovernew discover_neighbors/),
(map {$_ => 'Interactive'}
qw/location contact portcontrol portname vlan power/)
};

View File

@@ -53,7 +53,7 @@ sub discover {
# run find_neighbors on all known devices, and run discover on any
# newly found devices.
sub discoverall {
sub discovernew {
my ($self, $job) = @_;
my $devices = schema('netdisco')->resultset('Device')->get_column('ip');

View File

@@ -11,10 +11,10 @@ use namespace::clean;
my $jobactions = {
map {$_ => undef} qw/
refresh
discovernew
/
# saveconfigs
# discoverall
# refresh
# macwalk
# arpwalk
# nbtwalk

View File

@@ -80,7 +80,7 @@ daemon_pollers: 2
# what housekeeping tasks should this node *schedule*
# (it only does them if daemon_pollers is non-zero)
#housekeeping:
# discoverall:
# discovernew:
# device: '192.0.2.0'
# when:
# wday: 'wed'