fix use specific class for snmp transport
This commit is contained in:
@@ -216,7 +216,7 @@ sub _snmp_connect_generic {
|
|||||||
|
|
||||||
# if successful, restore the default/user timeouts and return
|
# if successful, restore the default/user timeouts and return
|
||||||
if ($info) {
|
if ($info) {
|
||||||
my $class = $info->device_type;
|
my $class = ($useclass ? $classes[0] : $info->device_type);
|
||||||
return $class->new(
|
return $class->new(
|
||||||
%snmp_args, Version => $ver,
|
%snmp_args, Version => $ver,
|
||||||
($info->offline ? (Cache => $info->cache) : ()),
|
($info->offline ? (Cache => $info->cache) : ()),
|
||||||
|
|||||||
Reference in New Issue
Block a user