diff options
author | Ilya Etingof <etingof@gmail.com> | 2016-11-05 22:59:31 +0100 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2016-11-05 22:59:31 +0100 |
commit | c54a3f6dc8ee433a55001e1cd97f6801bd6e52b7 (patch) | |
tree | 36b8477a686d5e15a8c6ab028626c69e7303eb10 /examples/hlapi/asyncio/manager/cmdgen/multiple-sequential-queries.py | |
parent | a0ef4b6ce81683dc33ae00b3dcedd1c4ec282249 (diff) | |
download | pysnmp-git-c54a3f6dc8ee433a55001e1cd97f6801bd6e52b7.tar.gz |
WIP: gracefully shutdown asyncio dispatcherasyncio-dispatcher-fixes
Diffstat (limited to 'examples/hlapi/asyncio/manager/cmdgen/multiple-sequential-queries.py')
-rw-r--r-- | examples/hlapi/asyncio/manager/cmdgen/multiple-sequential-queries.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/hlapi/asyncio/manager/cmdgen/multiple-sequential-queries.py b/examples/hlapi/asyncio/manager/cmdgen/multiple-sequential-queries.py index 4a43bc49..b9416366 100644 --- a/examples/hlapi/asyncio/manager/cmdgen/multiple-sequential-queries.py +++ b/examples/hlapi/asyncio/manager/cmdgen/multiple-sequential-queries.py @@ -37,8 +37,8 @@ def getone(snmpEngine, hostname): print('%s at %s' % ( errorStatus.prettyPrint(), errorIndex and varBinds[int(errorIndex) - 1][0] or '?' + ) ) - ) else: for varBind in varBinds: print(' = '.join([x.prettyPrint() for x in varBind])) @@ -48,11 +48,11 @@ def getone(snmpEngine, hostname): def getall(snmpEngine, hostnames): for hostname in hostnames: yield from getone(snmpEngine, hostname) - + yield from unconfigureCmdGen(snmpEngine) snmpEngine = SnmpEngine() loop = asyncio.get_event_loop() loop.run_until_complete(getall(snmpEngine, [('demo.snmplabs.com', 1161), ('demo.snmplabs.com', 2161), - ('demo.snmplabs.com', 3161)])) + ('demo.snmplabs.com', 3161)]))
\ No newline at end of file |