def callback( # type: ignore snmpEngine, sendRequestHandle, errorIndication, errorStatus, errorIndex, varBinds, cbCtx ): var_binds = vbProcessor.unmakeVarBinds(snmpEngine, varBinds, lookup_mib) cbCtx['error'] = errorIndication cbCtx['var_binds'] = var_binds
def callback( # type: ignore snmpEngine, sendRequestHandle, errorIndication, errorStatus, errorIndex, varBindTable, cbCtx ): var_bind_table = [vbProcessor.unmakeVarBinds(snmpEngine, row, lookup_mib) for row in varBindTable] if ignore_nonincreasing_oid and errorIndication and isinstance(errorIndication, errind.OidNotIncreasing): errorIndication = None cbCtx['error'] = errorIndication cbCtx['var_bind_table'] = var_bind_table[0] if var_bind_table else []