clean snmp handling

This commit is contained in:
Oliver Gorwits
2017-09-20 21:47:50 +01:00
parent 30a2d5dd86
commit 3e41c93f5a
4 changed files with 42 additions and 93 deletions

View File

@@ -1,7 +1,7 @@
package App::Netdisco::Transport::SNMP;
use Dancer qw/:syntax :script/;
use App::Netdisco::Util::SNMP 'build_communities';
use App::Netdisco::Util::SNMP 'get_communities';
use App::Netdisco::Util::Device 'get_device';
use App::Netdisco::Util::Permission ':all';
@@ -115,7 +115,7 @@ sub _snmp_connect_generic {
}
# get the community string(s)
my @communities = build_communities($device, $mode);
my @communities = get_communities($device, $mode);
# which SNMP versions to try and in what order
my @versions =