diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/hlapi/asyncore/agent/ntforg/async-multiple-informs-at-once.py | 2 | ||||
-rw-r--r-- | examples/hlapi/asyncore/agent/ntforg/async-running-multiple-snmp-engines-at-once.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/hlapi/asyncore/agent/ntforg/async-multiple-informs-at-once.py b/examples/hlapi/asyncore/agent/ntforg/async-multiple-informs-at-once.py index d14380b..e2cacbe 100644 --- a/examples/hlapi/asyncore/agent/ntforg/async-multiple-informs-at-once.py +++ b/examples/hlapi/asyncore/agent/ntforg/async-multiple-informs-at-once.py @@ -40,7 +40,7 @@ def cbFun(snmpEngine, sendRequestHandle, errorIndication, for name, val in varBinds: print('%s = %s' % (name.prettyPrint(), val.prettyPrint())) -snmpEngine = engine.SnmpEngine() +snmpEngine = SnmpEngine() ntfOrg = AsyncNotificationOriginator() diff --git a/examples/hlapi/asyncore/agent/ntforg/async-running-multiple-snmp-engines-at-once.py b/examples/hlapi/asyncore/agent/ntforg/async-running-multiple-snmp-engines-at-once.py index 7028d84..9df9daf 100644 --- a/examples/hlapi/asyncore/agent/ntforg/async-running-multiple-snmp-engines-at-once.py +++ b/examples/hlapi/asyncore/agent/ntforg/async-running-multiple-snmp-engines-at-once.py @@ -62,10 +62,10 @@ transportDispatcher.registerRoutingCbFun( lambda td,ta,d: ta[1] % 3 and 'A' or 'B' ) -snmpEngineA = engine.SnmpEngine() +snmpEngineA = SnmpEngine() snmpEngineA.registerTransportDispatcher(transportDispatcher, 'A') -snmpEngineB = engine.SnmpEngine() +snmpEngineB = SnmpEngine() snmpEngineB.registerTransportDispatcher(transportDispatcher, 'B') ntfOrg = AsyncNotificationOriginator() |