From 33cf47df0eaf40cf917936de88c7a90031907add Mon Sep 17 00:00:00 2001 From: elie Date: Fri, 4 Apr 2014 15:08:03 +0000 Subject: receive callback function adjusted to match latest AsyncNotificationOriginator --- .../v3arch/oneliner/agent/ntforg/inform-async-multiple-snmp-engines.py | 2 +- .../agent/ntforg/inform-async-multiple-transports-and-protocols.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') 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)) -- cgit v1.2.1