summaryrefslogtreecommitdiff
path: root/pysnmp/entity
Commit message (Collapse)AuthorAgeFilesLines
* Fix USM configuration for the case of partial keysIlya Etingof2019-08-051-1/+1
|
* Do not store incomplete USM keys and improve debugIlya Etingof2019-08-051-23/+91
| | | | | | | | | | | | | This adds details debugging on USM initial configuration process and runtime USM user cloning. Besides that, this patch eliminates storing of incomplete USM keys (in case when master/localized keys are configured directly). On top of that, this commit fixes a bug in USM configuration which did not allow the same user names to be added under different security names.
* Add USM master and localized keys configuration support (#295)Ilya Etingof2019-08-031-21/+42
| | | | | | | | | | | | 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.
* Support various forms of `vacmViewTreeFamilyMask` inputIlya Etingof2019-07-301-1/+1
| | | | This fixes release 4.4.10 before it's actually released.
* Rework VACM access control function (#287)Ilya Etingof2019-07-291-19/+34
| | | | | | | | | Most important changes include: * Added subtree match negation support (vacmViewTreeFamilyType) * Added subtree family mask support (vacmViewTreeFamilyMask) * Added prefix content name matching support (vacmAccessContextMatch) * Added key VACM tables caching for better lookup performance
* PEP-8 long lines and dunders (#245)Ilya Etingof2019-02-269-192/+429
| | | | 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-251-2/+2
|
* Ensure TRAP PDU consistency in v1archIlya Etingof2019-02-231-22/+40
| | | | | | 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.
* PEP8 optimize imports (#242)Ilya Etingof2019-02-128-37/+54
| | | | To make them PEP8-compliant
* Remove legacy "oneliner" API (#240)Ilya Etingof2019-02-103-516/+0
| | | | Drop everything related to the legacy "oneliner" and "mibvar" APIs.
* Uppercase global constants (#238)Ilya Etingof2019-02-108-115/+119
| | | | | | | | | 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.
* Fix Command Responder crashIlya Etingof2019-02-101-1/+1
| | | | Due to a bug in the 'Add missing SNMP PDU error classes' change.
* Drop Python < 2.6 except statement compatibility trickIlya Etingof2019-02-095-18/+18
|
* Drop Python < 2.6 kwargs expansion compatibility trickIlya Etingof2019-02-091-38/+38
|
* Add missing SNMP PDU error classesIlya Etingof2019-02-081-2/+14
| | | | | Added missing SNMP PDU error classes and their handling in Command Responder
* Extend copyright notice to year 2019Ilya Etingof2018-12-3012-9/+525
|
* Redesigned SMI objects management model (#214)Ilya Etingof2018-12-292-115/+221
| | | | | | | | | | | | | | 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 LCD to include `contextName` (#217)Ilya Etingof2018-11-031-3/+3
| | | | | | | | | 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.
* Refactor MIB state machine into asynchronous operations (#210)Ilya Etingof2018-10-242-129/+134
| | | | | | | | | | | | | | Convert to async MIB instrumentation API (#210) MIB instrumentation API changed to allow for asynchronous managed objects access. The MIB instrumentation methods called by the state machine now return immediately and resume once the callback is called. The built-in SNMPv2-SMI objects are still synchronous. This change is a prerequisite for fully asynchronous managed objects implementation.
* Convert to async MIB instrumentation API (#209)Ilya Etingof2018-10-132-62/+80
| | | | | | | | | | | | | | | | MIB instrumentation API changed to allow for asynchronous managed objects access. Although built-in SNMPv2-SMI objects are still synchronous, the MIB instrumentation API is async what allows users to replace default MIB instrumentation with their own, potentially asynchronous. CommandResponder refactored to facilitate asynchronous MIB instrumentation routines. The `readVars`, `readNextVars` and `writeVars` MIB controller methods return immediately and deliver their results via a call back. SMI/MIB managed objects API overhauled for simplicity and flexibility breaking backward compatibility.
* Fix Sphinx markup for USM crypto algorithm IDsIlya Etingof2018-10-061-0/+2
|
* Accommodate changed `.writeVars` signatureIlya Etingof2018-09-141-2/+2
|
* Add `hlapi.v1arch` API (#186)Ilya Etingof2018-08-121-28/+2
| | | | | | | | | | | | | | | | | | | | * 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
* VACM contextName memory leak fix followupIlya Etingof2018-08-061-2/+2
|
* VACM contextName memory leak fixIlya Etingof2018-08-061-4/+24
|
* Overhaul SMI/MIB instrumentation API (#161)Ilya Etingof2018-06-302-137/+223
| | | | | | | | | | | Overhaul SMI/MIB instrumentation API SMI/MIB managed objects API overhauled for simplicity and flexibility breaking backward compatibility. This change would allow way more control over custom MIB managed objects and also is the prerequisite for asynchronous MIB instrumentation.
* fix potential infinite loop in GETBULK response builderIlya Etingof2018-04-211-1/+1
|
* many backward-compatibility aids droppedIlya Etingof2018-02-259-679/+5
|
* copyright notice extendedv4.4.4Ilya Etingof2018-01-0312-12/+12
|
* migrated references from SourceForge (#110)Ilya Etingof2017-11-1712-12/+12
|
* fixed SNMPv3 retries algorithm inconsistencies (#106)Ilya Etingof2017-11-112-21/+34
|
* fixed non-translated PDU version retries at CommandGeneratorIlya Etingof2017-10-181-1/+11
|
* NotificationReceiver reports SNMPv1 TRAP community stringIlya Etingof2017-10-051-1/+8
|
* add support for USM SHA-2 algorithms (RFC 7860) (#71)verrio2017-08-031-0/+9
|
* Fixed issue on windows with engine-boots not properly being written. (#64)rwallen2017-07-081-1/+2
|
* import error fixIlya Etingof2017-05-291-1/+1
|
* minor pep8 improvementsIlya Etingof2017-05-276-76/+71
|
* email changed, copyright extended to the year 2017Ilya Etingof2017-01-1212-12/+12
|
* Reeder key localization refactoredIlya Etingof2016-08-211-8/+8
|
* Reeder key localization for AES192/256 encryption implementedIlya Etingof2016-08-211-2/+6
|
* converted to new-style classesIlya Etingof2016-06-129-13/+13
|
* fix to SNMP engine boot counter persistenceIlya Etingof2016-05-071-7/+2
|
* make sure to close/remove temporary filesIlya Etingof2016-05-071-0/+6
|
* pep8 reformattedIlya Etingof2016-04-0212-178/+358
|
* copyright updatedelie2015-12-2912-12/+12
|
* fix to NotificationOriginator to cope with unspecified user callableelie2015-12-191-3/+4
|
* all SNMP counters now incremented via '+= 1' rather than 'x = x + 1'elie2015-12-122-2/+2
|
* * SNMP table row consistency check added. This change may breakelie2015-11-221-31/+32
| | | | | valid SNMP SET operations on tables if RowStatus column is not passed at the very end of var-binds.
* copyright notice added to source codeelie2015-11-2012-18/+80
|
* unused variables droppedelie2015-10-181-1/+0
|