Squashed commit of the following:
commit c8f399b2d70248acde6bbabfa58ed4312bf1f8c2 Author: Oliver Gorwits <oliver@cpan.org> Date: Tue Jun 11 22:53:14 2013 +0100 version bump commit 39d16adf38c142feeb1378c217a59783c5a12b44 Author: Oliver Gorwits <oliver@cpan.org> Date: Tue Jun 11 22:43:37 2013 +0100 initial discover triggers *walk commit 29c334db714ac4846d024d815ffe1822889e879c Author: Oliver Gorwits <oliver@cpan.org> Date: Tue Jun 11 22:07:03 2013 +0100 factor out body of poller and interactive worker role commit db21f88e5a24ad99d808e70213cab1d83cc1ffee Author: Oliver Gorwits <oliver@cpan.org> Date: Tue Jun 11 20:58:07 2013 +0100 fix logging when daemonized commit 1f4a0539de7368273ddc7c24a8ffb0a663817e72 Author: Oliver Gorwits <oliver@cpan.org> Date: Tue Jun 11 17:49:44 2013 +0100 limit discovery and remove duff constraint on device_ip
This commit is contained in:
		| @@ -67,11 +67,16 @@ Returns false if the host is not permitted to discover the target device. | ||||
| =cut | ||||
|  | ||||
| sub is_discoverable { | ||||
|   my $q = shift; | ||||
|   my ($ip, $remote_type) = @_; | ||||
|   my $device = get_device($ip) or return 0; | ||||
|  | ||||
|   if ($remote_type) { | ||||
|       return 0 if | ||||
|         scalar grep {$remote_type =~ m/$_/} | ||||
|                     @{setting('discover_no_type') || []}; | ||||
|   } | ||||
|  | ||||
|   my $device = get_device($q) or return 0; | ||||
|   my $addr = NetAddr::IP::Lite->new($device->ip); | ||||
|  | ||||
|   my $discover_no   = setting('discover_no') || []; | ||||
|   my $discover_only = setting('discover_only') || []; | ||||
|  | ||||
|   | ||||
| @@ -154,7 +154,7 @@ sub _build_mibdirs { | ||||
|  | ||||
| sub _get_mibdirs_content { | ||||
|   my $home = shift; | ||||
|   warning 'Netdisco SNMP work will be really slow - loading ALL MIBs. Please set mibdirs.'; | ||||
|   warning 'Netdisco SNMP work will be slow - loading ALL MIBs. Consider setting mibdirs.'; | ||||
|   my @list = map {s|$home/||; $_} grep {-d} glob("$home/*"); | ||||
|   return \@list; | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user