summaryrefslogtreecommitdiff
path: root/pysnmp/hlapi
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo in docstringIlya Etingof2019-09-261-2/+2
|
* Docstring fixIlya Etingof2019-08-111-5/+5
|
* Introduce "wildcard" SNMP engine ID (#297)Ilya Etingof2019-08-111-5/+15
| | | | | | | | | | | This change introduces "wildcard" SNMP engine ID (0x00000000). Right before deciding on firing up SNMP engine ID discovery and key localization procedure, originating SNMP engine will check for the presence of this magical engine ID (5 zeros), if it is present in LCD along with the user name being used, localized keys from that entry will be used. Does this have security implications?
* Move SNMP engine discovery code to security moduleIlya Etingof2019-08-101-1/+7
| | | | | | | | | | | | | This SNMP engine ID discovery procedure is spread across message processing and security modules. This is weird! Anyway, this change moves SNMP message rewriting, associated with starting out SNMP discovery sequence, to security module. The motivation is to let security module making the ultimate decision whether or not SNMP engine discovery is required. For example, if localized keys are committed directly to the DB, security module may just use them without engine discovery phase.
* Expose USM_* constants to `hlapi` top-level scopeIlya Etingof2019-08-052-59/+104
|
* Add USM master and localized keys configuration support (#295)Ilya Etingof2019-08-034-31/+131
| | | | | | | | | | | | Added new optional parameters to `addUsmUser()` and `hlapi.UsmUserData()` functions allowing specifying key material type being passed to the respective routines. Plain-text pass-phrase remains the default, while user can change that to `master` or `localized` types. Refer to RFC3414 for technical details on SNMP USM key localization algorithm.
* Make received MIB objects resolution more forgivingIlya Etingof2019-07-301-3/+7
| | | | | | | | | Previously, MIB resolution errors were ignored (whenever possible) for objects we were sending and receiving. This change tightens outgoing objects MIB compliance (send will fail), but tolerate non quite compliant objects we receive. Also, extend the same policy onto `NotificationOriginator`.
* PEP-8 long lines and dunders (#245)Ilya Etingof2019-02-2617-211/+360
| | | | This patch massively reformats the whole codebase mainly wrapping long lines and eliminating dundered private attributes.
* Fix PDU consistency check in notification originatorIlya Etingof2019-02-252-4/+4
|
* Fix variable reference in hlapi/v1arch/ntforgIlya Etingof2019-02-251-2/+2
|
* Ensure TRAP PDU consistency in v1archIlya Etingof2019-02-234-92/+146
| | | | | | Also, consistency ensuring code unified with v3arch piece what has the side effect of *requiring* snmpTrapOID to be always present anywhere among user-supplied variable-bindings.
* Fix typos in the docstringsIlya Etingof2019-02-226-20/+13
|
* Introduce asyncio binding to hlapi.v1arch (#244)Ilya Etingof2019-02-227-17/+951
| | | | | The hlapi.v1arch asyncio API is intended to be very similar to hlapi.v3arch.asyncio from its signature viewpoint, however it should be faster at the expense of no SNMPv3 support.
* Fix typos in docstringsIlya Etingof2019-02-213-4/+4
|
* Fix broken `hlapi.isEndOfMib` callableIlya Etingof2019-02-213-3/+3
|
* PEP8 optimize imports (#242)Ilya Etingof2019-02-1226-50/+57
| | | | To make them PEP8-compliant
* Remove the remnants of hlapi.v1arch.asyncore.sync.compatIlya Etingof2019-02-121-9/+3
|
* Remove the remnants of hlapi.asyncore.syncIlya Etingof2019-02-121-19/+0
|
* Officially remove Python < 2.6 support (#239)Ilya Etingof2019-02-108-341/+2
| | | | Perhaps previous commits have already broken older Python support. This commit mostly declares Python 2.6+ support.
* Fix misnamed constantsIlya Etingof2019-02-103-16/+17
| | | | | This is a follow up to 588b9b902d191d8010cb6b247fcb07887d59542c fixing a couple of improperly named constants.
* Uppercase global constants (#238)Ilya Etingof2019-02-1019-173/+205
| | | | | | | | | This is a massive patch essentially upper-casing global/class attributes that mean to be constants. Some previously exposed constants have been preserved for compatibility reasons (notably, in `hlapi`), though the rest might break user code relying on pysnmp 4.
* Drop Python < 2.6 except statement compatibility trickIlya Etingof2019-02-094-14/+14
|
* Drop Python < 2.6 kwargs expansion compatibility trickIlya Etingof2019-02-092-16/+16
|
* Extend copyright notice to year 2019Ilya Etingof2018-12-3035-34/+53
|
* Redesigned SMI objects management model (#214)Ilya Etingof2018-12-291-1/+1
| | | | | | | | | | | | | | The primary motivation behind this redesign is to allow asynchronous operations between SNMP responder and the data source feeding its MIB. This is achieved by redesigning all `read*`, `write*`, `create*` and `destroy*` methods of the `SNMPv2-SMI` MIB objects to return immediately and deliver their results via a call back. This modification brings significant and backward incompatible changes to the low-level MIB operations. The pysnmp MIB modules compiled for older pysnmp remain compatible.
* Fix hlapi/v1arch GETNEXT EOM processingIlya Etingof2018-12-291-3/+6
| | | | | The hlapi/v1arch GETNEXT command crashes when hitting end-of-mib condition. This patch fixes this.
* Fix hlapi/v1arch request timeoutIlya Etingof2018-12-291-2/+2
| | | | The retrying mechanism never worked, apparently.
* Fix hlapi LCD to include `contextName` (#217)Ilya Etingof2018-11-037-31/+47
| | | | | | | | | Fixed hlapi LCD configurator to include `contextName`. Prior to this fix sending SNMPv3 TRAP with non-default `contextName` would fail. This change modifies the signature of the internal LCD methods.
* Fix Sphinx markup for USM crypto algorithm IDsIlya Etingof2018-10-062-14/+74
|
* Ensure distinct transports if timeout/retries differIlya Etingof2018-09-201-1/+4
| | | | | Fix hlapi/v3arch transport target caching to ensure transport targets are different even if just timeout/retries options differ.
* Fix lcd.unconfigure not removing cached addr value preventing the same ↵Ryan Van Gilder2018-09-091-1/+1
| | | | target being re-configured (#194)
* Add `hlapi.v1arch` API (#186)Ilya Etingof2018-08-1237-210/+2279
| | | | | | | | | | | | | | | | | | | | * Add `hlapi.v1arch` API Introduce new sub-package `pysnmp.hlapi.v1arch` which wraps otherwise very detailed packet-level SNMP messaging into a handful of convenience functions. As a side effect, the `pysnmp.hlapi.*` sub-packages moved under `pysnmp.hlapi.v3arch` though `pysnmp.hlapi` still exposes `pysnmp.hlappi.v3arch.*` symbols to retain some degree of backward compatibility. The signature of the hlapi `.sendNotification()` call has changed to accept `*varBinds` instead of a sequence of `varBinds`. The rationale is to unify this method call with similar methods of CommandGenerator. * Add v1arch docs and reshuffle hlapi docs
* Fix out-of-scope OID leak in hlapi tableIlya Etingof2018-08-061-10/+30
| | | | | | Fixed out-of-scope OIDs possibly leaking at the end of SNMP table at hlapi `nextCmd` and `bulkCmd` calls when `lexicographicMode = False`.
* Revert "Fix var-bind initialization from ObjectIdentity at hlapi"Ilya Etingof2018-07-051-4/+4
| | | | This reverts commit 23d1aa7bf5139d05c29ef27f6a5f68948c93a9df.
* Fix typo in docstringIlya Etingof2018-07-052-5/+5
|
* Fix var-bind initialization from ObjectIdentity at hlapiIlya Etingof2018-07-051-4/+4
|
* many backward-compatibility aids droppedIlya Etingof2018-02-252-10/+7
|
* copyright notice extendedv4.4.4Ilya Etingof2018-01-0322-22/+22
|
* migrated references from SourceForge (#110)Ilya Etingof2017-11-1722-22/+22
|
* make sure to pass an initializer to ASN.1 Null()Ilya Etingof2017-10-182-4/+4
| | | | This is a prerequisite for pyasn1 0.4.x
* Improve documentation of varBindTable returned by bulkCmd() (#91)Eugene M. Kim2017-10-123-21/+74
| | | | | | | * Clarify varBindTable returned by bulkCmd() in docs * Fix bulkCmd() examples * Abbreviate endOfMibView * Fix fixed-width markup of Get{BulkRequest,Response}-PDU
* Catch and pass exceptions to Twisted deferredIlya Etingof2017-10-052-22/+49
|
* Catch and pass exceptions to asyncio futures (#82)Eugene M. Kim2017-10-052-17/+49
| | | | | | | Previously an exceptions raised by vbProcessor.unmakeVarBinds() fell through, and asyncio base event loop caught and reported it on stderr, while the original cmdgen's future went unfinished, causing the call to hang forever. Match the synchronous version's behavior, which is to raise the exception for the caller of the cmdgen to catch.
* add support for USM SHA-2 algorithms (RFC 7860) (#71)verrio2017-08-031-1/+12
|
* deprecated UsmUserData instantiation params removedIlya Etingof2017-07-181-14/+1
|
* better ContextData docstringIlya Etingof2017-07-172-10/+13
|
* better CommunityData tags docstringIlya Etingof2017-07-171-8/+27
|
* document CommunityName quirksIlya Etingof2017-07-151-12/+18
|
* disambiguation of the *lexicographicMode* optionIlya Etingof2017-03-282-25/+33
|
* Add ignoreNonIncreasingOid option for twisted nextCmd and bulkCmdRyan Van Gilder2017-03-091-0/+13
|