diff options
author | elie <elie> | 2013-11-23 22:14:12 +0000 |
---|---|---|
committer | elie <elie> | 2013-11-23 22:14:12 +0000 |
commit | d033110ab8be0ba3340f1a505081358d358d7582 (patch) | |
tree | c4a3feb422c37721bc96ae8a4245d4f118baf7c7 /pysnmp/entity/rfc3413/cmdgen.py | |
parent | 35a247c060ea28eef49bdc67ed07c5775a5e0eaa (diff) | |
download | pysnmp-d033110ab8be0ba3340f1a505081358d358d7582.tar.gz |
fix to BULK CommandGenerator to use the same nonRepeaters OIDs across
multiple GETBULK iterations so returned table for nonRepeaters columns
would hold the same var-bind
Diffstat (limited to 'pysnmp/entity/rfc3413/cmdgen.py')
-rw-r--r-- | pysnmp/entity/rfc3413/cmdgen.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pysnmp/entity/rfc3413/cmdgen.py b/pysnmp/entity/rfc3413/cmdgen.py index 7408703..b693b94 100644 --- a/pysnmp/entity/rfc3413/cmdgen.py +++ b/pysnmp/entity/rfc3413/cmdgen.py @@ -590,6 +590,10 @@ class BulkCommandGenerator(BulkCommandGeneratorSingleRun): errorIndication, varBinds = getNextVarBinds( v2c.apiBulkPDU.getVarBinds(PDU), varBindTable[-1] ) + nonRepeaters = v2c.apiBulkPDU.getNonRepeaters(PDU) + if nonRepeaters: + varBinds = v2c.apiBulkPDU.getVarBinds(PDU)[:nonRepeaters] + \ + varBinds[nonRepeaters:] if not cbFun(sendRequestHandle, errorIndication, v2c.apiBulkPDU.getErrorStatus(rspPDU), |