rename discoverall to discovernew
This commit is contained in:
@@ -33,7 +33,7 @@ sub capacity_for {
|
|||||||
debug "checking local capacity for action $action";
|
debug "checking local capacity for action $action";
|
||||||
|
|
||||||
my $action_map = {
|
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/],
|
Interactive => [qw/location contact portcontrol portname vlan power/],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ my $fqdn = hostfqdn || 'localhost';
|
|||||||
|
|
||||||
my $role_map = {
|
my $role_map = {
|
||||||
(map {$_ => 'Poller'}
|
(map {$_ => 'Poller'}
|
||||||
qw/refresh discover discoverall discover_neighbors/),
|
qw/refresh discover discovernew discover_neighbors/),
|
||||||
(map {$_ => 'Interactive'}
|
(map {$_ => 'Interactive'}
|
||||||
qw/location contact portcontrol portname vlan power/)
|
qw/location contact portcontrol portname vlan power/)
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ sub discover {
|
|||||||
|
|
||||||
# run find_neighbors on all known devices, and run discover on any
|
# run find_neighbors on all known devices, and run discover on any
|
||||||
# newly found devices.
|
# newly found devices.
|
||||||
sub discoverall {
|
sub discovernew {
|
||||||
my ($self, $job) = @_;
|
my ($self, $job) = @_;
|
||||||
|
|
||||||
my $devices = schema('netdisco')->resultset('Device')->get_column('ip');
|
my $devices = schema('netdisco')->resultset('Device')->get_column('ip');
|
||||||
|
|||||||
@@ -11,10 +11,10 @@ use namespace::clean;
|
|||||||
|
|
||||||
my $jobactions = {
|
my $jobactions = {
|
||||||
map {$_ => undef} qw/
|
map {$_ => undef} qw/
|
||||||
|
refresh
|
||||||
|
discovernew
|
||||||
/
|
/
|
||||||
# saveconfigs
|
# saveconfigs
|
||||||
# discoverall
|
|
||||||
# refresh
|
|
||||||
# macwalk
|
# macwalk
|
||||||
# arpwalk
|
# arpwalk
|
||||||
# nbtwalk
|
# nbtwalk
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ daemon_pollers: 2
|
|||||||
# what housekeeping tasks should this node *schedule*
|
# what housekeeping tasks should this node *schedule*
|
||||||
# (it only does them if daemon_pollers is non-zero)
|
# (it only does them if daemon_pollers is non-zero)
|
||||||
#housekeeping:
|
#housekeeping:
|
||||||
# discoverall:
|
# discovernew:
|
||||||
# device: '192.0.2.0'
|
# device: '192.0.2.0'
|
||||||
# when:
|
# when:
|
||||||
# wday: 'wed'
|
# wday: 'wed'
|
||||||
|
|||||||
Reference in New Issue
Block a user