bug fixes after testing on a real network
This commit is contained in:
@@ -46,7 +46,8 @@ register_worker({ phase => 'main', driver => 'snmp' }, sub {
|
||||
if (check_acl_only($device, $key)
|
||||
and check_acl_only($alias, $map->{$key})) {
|
||||
|
||||
if ($snmp->snmp_connect_ip( $alias->alias )) {
|
||||
# if ($snmp->snmp_connect_ip( $alias->alias )) { FIXME
|
||||
if (App::Netdisco::Transport::SNMP->reader_for( $alias->alias )) {
|
||||
$new_ip = $alias->alias;
|
||||
last ALIAS;
|
||||
}
|
||||
|
||||
@@ -60,8 +60,9 @@ register_worker({ phase => 'main', driver => 'snmp' }, sub {
|
||||
my $e_fru = $snmp->e_fru;
|
||||
|
||||
# build device modules list for DBIC
|
||||
my @modules;
|
||||
my (@modules, %seen_idx);
|
||||
foreach my $entry (keys %$e_index) {
|
||||
next if $seen_idx{$entry}++;
|
||||
push @modules, {
|
||||
index => $e_index->{$entry},
|
||||
type => $e_type->{$entry},
|
||||
|
||||
@@ -4,6 +4,7 @@ use Dancer ':syntax';
|
||||
use App::Netdisco::Worker::Plugin;
|
||||
use aliased 'App::Netdisco::Worker::Status';
|
||||
|
||||
use App::Netdisco::JobQueue 'jq_insert';
|
||||
use Dancer::Plugin::DBIC 'schema';
|
||||
|
||||
register_worker({ phase => 'main' }, sub {
|
||||
|
||||
Reference in New Issue
Block a user