From 71f5bb7959b39460ff349afc6b6d2cf3696328f1 Mon Sep 17 00:00:00 2001 From: "Eric A. Miller" Date: Mon, 30 Sep 2013 20:20:29 -0400 Subject: [PATCH] correct bulkwalk_off logic --- Netdisco/lib/App/Netdisco/Util/SNMP.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Netdisco/lib/App/Netdisco/Util/SNMP.pm b/Netdisco/lib/App/Netdisco/Util/SNMP.pm index e368e426..20428b84 100644 --- a/Netdisco/lib/App/Netdisco/Util/SNMP.pm +++ b/Netdisco/lib/App/Netdisco/Util/SNMP.pm @@ -66,7 +66,8 @@ sub _snmp_connect_generic { Retries => (setting('snmpretries') || 2), Timeout => (setting('snmptimeout') || 1000000), NonIncreasing => (setting('nonincreasing') || 0), - BulkWalk => ((defined setting('bulkwalk_off')) ? setting('bulkwalk_off') : 1), + BulkWalk => ((defined setting('bulkwalk_off') && setting('bulkwalk_off')) + ? 0 : 1), BulkRepeaters => (setting('bulkwalk_repeaters') || 20), MibDirs => [ _build_mibdirs() ], IgnoreNetSNMPConf => 1,