revert some changes to allow simpler merging

This commit is contained in:
Oliver Gorwits
2019-03-11 18:02:34 +00:00
parent fa6717070f
commit d5193823d2
3 changed files with 42 additions and 22 deletions

View File

@@ -78,17 +78,13 @@ if ($opensshdebug){
$Net::OpenSSH::debug = ~0;
}
MCE::Loop::init { chunk_size => 1, max_workers => $workers };
my %stats;
$stats{entry} = 0;
deprecation_warning();
exit main();
sub main {
my @input = @{ setting('sshcollector') };
if ($device){
@@ -180,15 +176,6 @@ sub store_arpentries {
}
}
sub deprecation_warning {
print "\n";
warning sprintf "DEPRECATION WARNING\n" .
"This script and the sshcollector setting will be removed in a future release!\n".
"See this document to migrate to the new sshcollector integrated into\n" .
"regular netdisco-do/netdisco-daemon arpnip:\n" .
"https://github.com/netdisco/netdisco/wiki/bin-sshcollector-deprecation\n\n";
}
=head1 NAME
netdisco-sshcollector - Collect ARP data for Netdisco from devices without