diff options
author | elie <elie> | 2014-06-27 06:43:28 +0000 |
---|---|---|
committer | elie <elie> | 2014-06-27 06:43:28 +0000 |
commit | 3e848c2f1d170b3f12fe122432417002e045d3b5 (patch) | |
tree | 3c22342c9cfb5c7ea109fd574f26101be00caabd | |
parent | 7145d433105bc569dc5a09a4189da17bebc41f1c (diff) | |
download | pysnmp-3e848c2f1d170b3f12fe122432417002e045d3b5.tar.gz |
make NotificationOriginator using MibInstrumentationController when expanding
Notification OBJECTS into Managed Objects Instances
-rw-r--r-- | CHANGES | 2 | ||||
-rw-r--r-- | pysnmp/entity/rfc3413/ntforg.py | 6 |
2 files changed, 7 insertions, 1 deletions
@@ -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 98e92c8..c7e7a98 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( |