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
pull/45/head
elie 2013-11-23 22:14:12 +00:00
parent 0f08e5fa14
commit d9e66985f4
2 changed files with 7 additions and 0 deletions

View File

@ -23,6 +23,9 @@ Revision 4.2.6rc0
- Fix to rfc1902.Bits type to make it accepting hex and binary initializers,
cope with missing bits identifieirs at prettyPrint().
- Memory leak fixed in CommandForwarder examples.
- 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.
- Fix to CommandGenerator to make sendRequestHandle persistent across
multiple iterations of GETNEXT/GETBULK queries.
- Fix to sendNotification() error handling at NotificationOriginator.

View File

@ -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),