Ensure distinct transports if timeout/retries differ

Fix hlapi/v3arch transport target caching to ensure transport targets
are different even if just timeout/retries options differ.
async-mib-instrumentation
Ilya Etingof 2018-09-20 10:44:11 +02:00
parent da7582db99
commit 53e67f9533
2 changed files with 10 additions and 1 deletions

View File

@ -46,6 +46,12 @@ Revision 5.0.0, released 2018-10-??
is to unify this method call with similar methods of CommandGenerator.
This change should not compromise backward compatibility with pysnmp 4.
Revision 4.4.7, released 2018-09-XX
-----------------------------------
- Fixed hlapi/v3arch transport target caching to ensure transport targets
are different even if just timeout/retries options differ
Revision 4.4.6, released 2018-09-13
-----------------------------------

View File

@ -94,7 +94,10 @@ class CommandGeneratorLcdConfigurator(AbstractLcdConfigurator):
transportKey = (paramsName, transportTarget.transportDomain,
transportTarget.transportAddr,
transportTarget.tagList)
transportTarget.timeout,
transportTarget.retries,
transportTarget.tagList,
transportTarget.iface)
if transportKey in cache['addr']:
addrName, useCount = cache['addr'][transportKey]