diff options
author | elie <elie> | 2005-10-14 19:50:20 +0000 |
---|---|---|
committer | elie <elie> | 2005-10-14 19:50:20 +0000 |
commit | 8bb958fab7def712540bb77a2869579da6f3b211 (patch) | |
tree | 8bf07fc4f67bf9420b8335f8e3f877b52970805a | |
parent | b2fb49b218e10071ccb3a02b78f941d49122f7cf (diff) | |
download | pysnmp-8bb958fab7def712540bb77a2869579da6f3b211.tar.gz |
SetCommandResponder added
-rw-r--r-- | pysnmp/entity/rfc3413/cmdrsp.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pysnmp/entity/rfc3413/cmdrsp.py b/pysnmp/entity/rfc3413/cmdrsp.py index 3e54e9a..46fe69e 100644 --- a/pysnmp/entity/rfc3413/cmdrsp.py +++ b/pysnmp/entity/rfc3413/cmdrsp.py @@ -267,3 +267,16 @@ class BulkCommandResponder(CommandResponderBase): rspVarBinds = rspVarBinds[:self.maxVarBinds] return 0, 0, rspVarBinds + +class SetCommandResponder(CommandResponderBase): + pduTypes = ( rfc1905.SetRequestPDU.tagSet, ) + + # rfc1905: 4.2.5 + def _handleManagementOperation( + self, snmpEngine, contextMibInstrumCtl, PDU, (acFun, acCtx) + ): + # rfc1905: 4.2.5.1-13 + return 0, 0, contextMibInstrumCtl.writeVars( + v2c.apiPDU.getVarBinds(PDU), (acFun, acCtx) + ) + |