summaryrefslogtreecommitdiff
path: root/pysnmp/entity/rfc3413
diff options
context:
space:
mode:
authorelie <elie>2010-11-14 11:32:52 +0000
committerelie <elie>2010-11-14 11:32:52 +0000
commit1c7e7c7bd3174598e4899baa63ec49abc5c759c9 (patch)
treeffed188e99ba1be37bd51c6d7e072ab44dca3c8a /pysnmp/entity/rfc3413
parentc0cd31e76eb0bf431f25e8d4bd1defd8c7283bed (diff)
downloadpysnmp-git-1c7e7c7bd3174598e4899baa63ec49abc5c759c9.tar.gz
OIDs carrying SNMP exception values may not be increasing
Diffstat (limited to 'pysnmp/entity/rfc3413')
-rw-r--r--pysnmp/entity/rfc3413/cmdgen.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pysnmp/entity/rfc3413/cmdgen.py b/pysnmp/entity/rfc3413/cmdgen.py
index 42844fe0..cdc8e176 100644
--- a/pysnmp/entity/rfc3413/cmdgen.py
+++ b/pysnmp/entity/rfc3413/cmdgen.py
@@ -429,7 +429,7 @@ class NextCommandGenerator(CommandGeneratorBase):
errorIndication = None
else:
if map(lambda (o,v): o, pMod.apiPDU.getVarBinds(PDU)) < \
- map(lambda (o,v): o, varBindTable[-1]):
+ map(lambda (o,v): v is None and (9,) or o,varBindTable[-1]):
errorIndication = None
else:
debug.logger & debug.flagApp and debug.logger('_handleResponse: sendRequestHandle %s, OID(s) not increasing!' % sendRequestHandle)
@@ -551,7 +551,7 @@ class BulkCommandGenerator(CommandGeneratorBase):
errorIndication = None
else:
if map(lambda (o,v): o, pMod.apiBulkPDU.getVarBinds(PDU)) < \
- map(lambda (o,v): o, varBindTable[-1]):
+ map(lambda (o,v): v is None and (9,) or o,varBindTable[-1]):
errorIndication = None
else:
debug.logger & debug.flagApp and debug.logger('_handleResponse: sendRequestHandle %s, OID(s) not increasing!' % sendRequestHandle)