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-bindpull/45/head
parent
0f08e5fa14
commit
d9e66985f4
|
@ -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.
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue