diff options
author | elie <elie> | 2010-11-14 11:32:52 +0000 |
---|---|---|
committer | elie <elie> | 2010-11-14 11:32:52 +0000 |
commit | 8d4d1175a37f1d354b82789db1e442a603862c09 (patch) | |
tree | d83d5174b131e7a0a98cf56b1f01d955413ba191 | |
parent | deae96cda237ecc9e3d44878928bece6394fbcf0 (diff) | |
download | pysnmp-8d4d1175a37f1d354b82789db1e442a603862c09.tar.gz |
OIDs carrying SNMP exception values may not be increasing
-rw-r--r-- | pysnmp/entity/rfc3413/cmdgen.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pysnmp/entity/rfc3413/cmdgen.py b/pysnmp/entity/rfc3413/cmdgen.py index 42844fe..cdc8e17 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) |