summaryrefslogtreecommitdiff
path: root/pysnmp/entity/rfc3413/cmdrsp.py
diff options
context:
space:
mode:
Diffstat (limited to 'pysnmp/entity/rfc3413/cmdrsp.py')
-rw-r--r--pysnmp/entity/rfc3413/cmdrsp.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/pysnmp/entity/rfc3413/cmdrsp.py b/pysnmp/entity/rfc3413/cmdrsp.py
index 3e54e9a8..46fe69eb 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)
+ )
+