summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelie <elie>2014-04-04 15:08:03 +0000
committerelie <elie>2014-04-04 15:08:03 +0000
commit33cf47df0eaf40cf917936de88c7a90031907add (patch)
tree49e841c672e8561e0de99d2ffe4a2583bdabd4ff
parent292dfeff126ff9c5b15a06be6cf8d3b44517248b (diff)
downloadpysnmp-33cf47df0eaf40cf917936de88c7a90031907add.tar.gz
receive callback function adjusted to match latest AsyncNotificationOriginator
-rw-r--r--examples/v3arch/oneliner/agent/ntforg/inform-async-multiple-snmp-engines.py2
-rw-r--r--examples/v3arch/oneliner/agent/ntforg/inform-async-multiple-transports-and-protocols.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/v3arch/oneliner/agent/ntforg/inform-async-multiple-snmp-engines.py b/examples/v3arch/oneliner/agent/ntforg/inform-async-multiple-snmp-engines.py
index 53ddedd..6acaf28 100644
--- a/examples/v3arch/oneliner/agent/ntforg/inform-async-multiple-snmp-engines.py
+++ b/examples/v3arch/oneliner/agent/ntforg/inform-async-multiple-snmp-engines.py
@@ -41,7 +41,7 @@ targets = (
ntforg.UdpTransportTarget(('localhost', 162)) )
)
-def cbFun(sendRequestHandle, errorIndication,
+def cbFun(snmpEngine, sendRequestHandle, errorIndication,
errorStatus, errorIndex, varBinds, cbCtx):
snmpEngine = cbCtx
if errorIndication:
diff --git a/examples/v3arch/oneliner/agent/ntforg/inform-async-multiple-transports-and-protocols.py b/examples/v3arch/oneliner/agent/ntforg/inform-async-multiple-transports-and-protocols.py
index 095149a..bc679d6 100644
--- a/examples/v3arch/oneliner/agent/ntforg/inform-async-multiple-transports-and-protocols.py
+++ b/examples/v3arch/oneliner/agent/ntforg/inform-async-multiple-transports-and-protocols.py
@@ -27,7 +27,7 @@ targets = (
ntforg.UdpTransportTarget(('localhost', 162)) )
)
-def cbFun(sendRequestHandle, errorIndication,
+def cbFun(snmpEngine, sendRequestHandle, errorIndication,
errorStatus, errorIndex, varBinds, cbctx):
if errorIndication:
print('Notification %s not sent: %s' % (sendRequestHandle, errorIndication))