diff options
author | elie <elie> | 2014-06-17 21:29:20 +0000 |
---|---|---|
committer | elie <elie> | 2014-06-17 21:29:20 +0000 |
commit | 212aae86e701d001461c39effd9760dda028d2a8 (patch) | |
tree | 2a7ae2888148a796091dc42ab5d2e6bc19177303 | |
parent | e0103d98ad4bea02db19287bf77160ce22218815 (diff) | |
download | pysnmp-212aae86e701d001461c39effd9760dda028d2a8.tar.gz |
fixes to suite the latest AsyncCommandGenerator API
3 files changed, 6 insertions, 6 deletions
diff --git a/examples/v3arch/oneliner/manager/cmdgen/get-async-multiple-snmp-engines.py b/examples/v3arch/oneliner/manager/cmdgen/get-async-multiple-snmp-engines.py index 8b5eec2..1b7d156 100644 --- a/examples/v3arch/oneliner/manager/cmdgen/get-async-multiple-snmp-engines.py +++ b/examples/v3arch/oneliner/manager/cmdgen/get-async-multiple-snmp-engines.py @@ -52,8 +52,8 @@ targets = ( ) # Wait for responses or errors -def cbFun(sendRequestHandle, errorIndication, errorStatus, errorIndex, - varBinds, cbCtx): +def cbFun(snmpEngine, sendRequestHandle, errorIndication, + errorStatus, errorIndex, varBinds, cbCtx): (snmpEngine, authData, transportTarget) = cbCtx print('snmpEngine %s: %s via %s' % (snmpEngine.snmpEngineID.prettyPrint(), authData, transportTarget) diff --git a/examples/v3arch/oneliner/manager/cmdgen/get-async-multiple-transports-and-protocols.py b/examples/v3arch/oneliner/manager/cmdgen/get-async-multiple-transports-and-protocols.py index 2ff0438..d70617d 100644 --- a/examples/v3arch/oneliner/manager/cmdgen/get-async-multiple-transports-and-protocols.py +++ b/examples/v3arch/oneliner/manager/cmdgen/get-async-multiple-transports-and-protocols.py @@ -50,8 +50,8 @@ targets = ( ) # Wait for responses or errors -def cbFun(sendRequestHandle, errorIndication, errorStatus, errorIndex, - varBinds, cbCtx): +def cbFun(snmpEngine, sendRequestHandle, errorIndication, + errorStatus, errorIndex, varBinds, cbCtx): (authData, transportTarget) = cbCtx print('%s via %s' % (authData, transportTarget)) if errorIndication: diff --git a/examples/v3arch/oneliner/manager/cmdgen/getnext-async-multiple-transports-and-protocols.py b/examples/v3arch/oneliner/manager/cmdgen/getnext-async-multiple-transports-and-protocols.py index 50bece9..af3a40f 100644 --- a/examples/v3arch/oneliner/manager/cmdgen/getnext-async-multiple-transports-and-protocols.py +++ b/examples/v3arch/oneliner/manager/cmdgen/getnext-async-multiple-transports-and-protocols.py @@ -39,8 +39,8 @@ targets = ( ) # Wait for responses or errors, submit GETNEXT requests for further OIDs -def cbFun(sendRequestHandle, errorIndication, errorStatus, errorIndex, - varBindTable, cbCtx): +def cbFun(snmpEngine, sendRequestHandle, errorIndication, + errorStatus, errorIndex, varBindTable, cbCtx): (varBindHead, authData, transportTarget) = cbCtx print('%s via %s' % (authData, transportTarget)) if errorIndication: |