summaryrefslogtreecommitdiff
path: root/pysnmp
diff options
context:
space:
mode:
authorelie <elie>2014-11-04 17:13:13 +0000
committerelie <elie>2014-11-04 17:13:13 +0000
commit7e3f7b5987df8eebe20d5e46f893e29be448adef (patch)
treedd6638460ce9ef84d1602f336fb26e268c457978 /pysnmp
parentc19ed98c46696d37108cf6cbedcbcb601b34540b (diff)
downloadpysnmp-7e3f7b5987df8eebe20d5e46f893e29be448adef.tar.gz
nonRepeaters & maxRepetitions position fix
Diffstat (limited to 'pysnmp')
-rw-r--r--pysnmp/entity/rfc3413/twisted/cmdgen.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/pysnmp/entity/rfc3413/twisted/cmdgen.py b/pysnmp/entity/rfc3413/twisted/cmdgen.py
index 71f6c50..40f5464 100644
--- a/pysnmp/entity/rfc3413/twisted/cmdgen.py
+++ b/pysnmp/entity/rfc3413/twisted/cmdgen.py
@@ -1,7 +1,7 @@
from twisted.internet import defer
from pysnmp.entity.rfc3413 import cmdgen
-def __cbFun(snmpEngine, sendRequestHandle, errorIndication,
+def _cbFun(snmpEngine, sendRequestHandle, errorIndication,
errorStatus, errorIndex, varBinds, cbCtx):
df = cbCtx['df']
df.callback(
@@ -25,7 +25,7 @@ class AbstractCommandGenerator:
contextEngineId,
contextName,
varBinds,
- __cbFun,
+ _cbFun,
{ 'df': df } # anonymous dictionary used for cbCtx
)
return df
@@ -49,22 +49,22 @@ class AbstractBulkCommandGenerator:
self,
snmpEngine,
targetName,
- nonRepeaters,
- maxRepetitions,
contextEngineId,
contextName,
+ nonRepeaters,
+ maxRepetitions,
varBinds
):
df = defer.Deferred()
self.commandGenerator.sendVarBinds(
snmpEngine,
targetName,
- nonRepeaters,
- maxRepetitions,
contextEngineId,
contextName,
+ nonRepeaters,
+ maxRepetitions,
varBinds,
- __cbFun,
+ _cbFun,
{ 'df': df } # anonymous dictionary used for cbCtx
)
return df
@@ -118,10 +118,10 @@ def _sendBulkReq(self,
contextName=''):
innerDf = self.sendVarBinds(snmpEngine,
targetName,
- nonRepeaters,
- maxRepetitions,
contextEngineId,
contextName,
+ nonRepeaters,
+ maxRepetitions,
varBinds)
outerDf = defer.Deferred()
innerDf.addCallback(__sendReqCbFun, outerDf)