summaryrefslogtreecommitdiff
path: root/pysnmp/entity/rfc3413/cmdgen.py
diff options
context:
space:
mode:
authorelie <elie>2013-11-23 22:14:12 +0000
committerelie <elie>2013-11-23 22:14:12 +0000
commitd033110ab8be0ba3340f1a505081358d358d7582 (patch)
treec4a3feb422c37721bc96ae8a4245d4f118baf7c7 /pysnmp/entity/rfc3413/cmdgen.py
parent35a247c060ea28eef49bdc67ed07c5775a5e0eaa (diff)
downloadpysnmp-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.py4
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),