Fix snmp_bulk setting not being applied (#13209)

This commit is contained in:
Tony Murray
2021-09-08 19:04:16 -05:00
committed by GitHub
parent 26b95c0ccc
commit 8ef70f8bec

View File

@@ -129,7 +129,7 @@ function gen_snmpget_cmd($device, $oids, $options = null, $mib = null, $mibdir =
*/
function gen_snmpwalk_cmd($device, $oids, $options = null, $mib = null, $mibdir = null, $strIndexing = null)
{
if ($device['snmpver'] == 'v1' || (isset($device['os']) && Config::getOsSetting($device['os'], 'snmp_walk', true) == false)) {
if ($device['snmpver'] == 'v1' || (isset($device['os']) && Config::getOsSetting($device['os'], 'snmp_bulk', true) == false)) {
$snmpcmd = [Config::get('snmpwalk')];
} else {
$snmpcmd = [Config::get('snmpbulkwalk')];