diff options
author | elie <elie> | 2011-09-10 13:36:03 +0000 |
---|---|---|
committer | elie <elie> | 2011-09-10 13:36:03 +0000 |
commit | e5df1b3699184f8b87124eb99ad6aab2637c9318 (patch) | |
tree | 8c23b6492836be46b407465f9e31306d3838d750 | |
parent | 181ea1a2d32b0cd1ed52a4fce2bdedaf55fc6516 (diff) | |
download | pysnmp-e5df1b3699184f8b87124eb99ad6aab2637c9318.tar.gz |
reverted PDU initalization as it breaks TRAPs otherwise
-rw-r--r-- | pysnmp/proto/proxy/rfc2576.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pysnmp/proto/proxy/rfc2576.py b/pysnmp/proto/proxy/rfc2576.py index e2554fc..899c914 100644 --- a/pysnmp/proto/proxy/rfc2576.py +++ b/pysnmp/proto/proxy/rfc2576.py @@ -177,6 +177,12 @@ def v2ToV1(v2Pdu, origV1Pdu=None): else: raise error.ProtocolError('Unsupported PDU type') + + if pduType in rfc3411.notificationClassPDUs: + v1.apiTrapPDU.setDefaults(v1Pdu) + else: + v1.apiPDU.setDefaults(v1Pdu) + v2VarBinds = v2c.apiPDU.getVarBinds(v2Pdu) v1VarBinds = [] |