diff options
author | elie <elie> | 2011-09-10 13:36:03 +0000 |
---|---|---|
committer | elie <elie> | 2011-09-10 13:36:03 +0000 |
commit | 6bdee619618434e9bcc3b82457b5f4cadcb8e9fe (patch) | |
tree | da8d9063d546f7d35c694ee48dcc7cf3495695d2 /pysnmp/proto/proxy | |
parent | ac6a6ed7d898569d3dd5d9824973942d8a4bc842 (diff) | |
download | pysnmp-git-6bdee619618434e9bcc3b82457b5f4cadcb8e9fe.tar.gz |
reverted PDU initalization as it breaks TRAPs otherwise
Diffstat (limited to 'pysnmp/proto/proxy')
-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 e2554fc4..899c9146 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 = [] |