diff options
author | elie <elie> | 2014-06-27 06:43:28 +0000 |
---|---|---|
committer | elie <elie> | 2014-06-27 06:43:28 +0000 |
commit | c30181f6d866521c27df7b217356097e5546e3ae (patch) | |
tree | b578e54857ecc413e190f961c040533f4ba57cb5 | |
parent | 02913c4650b0d33e6187f8f0ac69e1a1574ca2b4 (diff) | |
download | pysnmp-git-c30181f6d866521c27df7b217356097e5546e3ae.tar.gz |
make NotificationOriginator using MibInstrumentationController when expanding
Notification OBJECTS into Managed Objects Instances
-rw-r--r-- | CHANGES.txt | 2 | ||||
-rw-r--r-- | pysnmp/entity/rfc3413/ntforg.py | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index d83fbe96..f55229d3 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -89,6 +89,8 @@ Revision 4.2.6rc0 change has been explicitly permitted by the original modules authors. - Fix to asyncore-based transport not to use asyncore's cheap inheritance from socket object what caused warnings. +- Fix at NotificationOriginator to make is using MibInstrumentationController + when expanding Notification OBJECTS into Managed Objects Instances. - Missing wrongLength and wrongEncoding SMI errors added. Revision 4.2.5 diff --git a/pysnmp/entity/rfc3413/ntforg.py b/pysnmp/entity/rfc3413/ntforg.py index 98e92c8c..c7e7a982 100644 --- a/pysnmp/entity/rfc3413/ntforg.py +++ b/pysnmp/entity/rfc3413/ntforg.py @@ -326,7 +326,11 @@ class NotificationOriginator: mibNode = mibNode.getNode(mibNode.name + instanceIndex) else: mibNode = mibNode.getNextNode(mibNode.name) - varBinds.append((mibNode.name, mibNode.syntax)) + varBinds.extend( + contextMibInstrumCtl.readVars( + [ (mibNode.name, None) ] # XXX AC is missing + ) + ) debug.logger & debug.flagApp and debug.logger('sendVarBinds: processed notification object %s, instance index %s, var-bind %s' % (notificationObject, instanceIndex is None and "<first>" or instanceIndex, mibNode)) elif notificationName: # numeric OID varBinds.append( |