summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Van Gilder <rvangilder1@gmail.com>2018-09-09 00:29:32 -0700
committerIlya Etingof <etingof@gmail.com>2018-09-09 09:30:46 +0200
commitdaa2ce01719ae53cc7b40a7b55f8878ca9dd4aa6 (patch)
treee6e404e185461c96c333889238b88a523c226276
parent34836cc48453abcc3f9724b26a798b903f40e31b (diff)
downloadpysnmp-git-daa2ce01719ae53cc7b40a7b55f8878ca9dd4aa6.tar.gz
Fix lcd.unconfigure not removing cached addr value preventing the same target being re-configured (#194)
-rw-r--r--pysnmp/hlapi/lcd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pysnmp/hlapi/lcd.py b/pysnmp/hlapi/lcd.py
index bcd69d87..e5d18ec1 100644
--- a/pysnmp/hlapi/lcd.py
+++ b/pysnmp/hlapi/lcd.py
@@ -175,7 +175,7 @@ class CommandGeneratorLcdConfigurator(AbstractLcdConfigurator):
cache['addr'][addrKey] = addrName, useCount
else:
config.delTargetAddr(snmpEngine, addrName)
-
+ del cache['addr'][addrKey]
addrNames.add(addrKey)
if addrKey[1] in cache['tran']: