diff options
author | elie <elie> | 2012-05-25 16:21:12 +0000 |
---|---|---|
committer | elie <elie> | 2012-05-25 16:21:12 +0000 |
commit | 8f242a2aada275f9684b91a0397e2783919b3861 (patch) | |
tree | 7fb694d65df724f310ac474dec66d2007246167a /pysnmp/entity/rfc3413/cmdgen.py | |
parent | ed0b2de2b134c1518988d4c1409d2bfda8a5e540 (diff) | |
download | pysnmp-8f242a2aada275f9684b91a0397e2783919b3861.tar.gz |
fix to SNMPv2 exception objects handling at the NEXT OIDs calculation
Diffstat (limited to 'pysnmp/entity/rfc3413/cmdgen.py')
-rw-r--r-- | pysnmp/entity/rfc3413/cmdgen.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pysnmp/entity/rfc3413/cmdgen.py b/pysnmp/entity/rfc3413/cmdgen.py index 1b68bf2..2709f99 100644 --- a/pysnmp/entity/rfc3413/cmdgen.py +++ b/pysnmp/entity/rfc3413/cmdgen.py @@ -22,7 +22,9 @@ def getNextVarBinds(origVarBinds, varBinds): rspVarBinds = [] while idx: idx = idx - 1 - if isinstance(varBinds[idx][1], univ.Null): + if varBinds[idx][1].tagSet in (rfc1905.NoSuchObject.tagSet, + rfc1905.NoSuchInstance.tagSet, + rfc1905.EndOfMibView.tagSet): nonNulls = nonNulls - 1 elif origVarBinds[idx][0].asTuple() >= varBinds[idx][0].asTuple(): errorIndication = errind.oidNotIncreasing |