summaryrefslogtreecommitdiff
path: root/pysnmp/entity
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2018-11-03 12:51:35 +0100
committerIlya Etingof <etingof@gmail.com>2018-11-03 12:55:51 +0100
commit4994111b2bdfb496d2b33cce6607db8a1de40473 (patch)
tree030d5c5fae96f94551440f9f986f6e1698f8a5ec /pysnmp/entity
parent9ebd0c0fab207c02f2046a1d221f147aa69c6c26 (diff)
downloadpysnmp-git-4994111b2bdfb496d2b33cce6607db8a1de40473.tar.gz
Fix hlapi LCD to include `contextName` (#217)
Fixed hlapi LCD configurator to include `contextName`. Prior to this fix sending SNMPv3 TRAP with non-default `contextName` would fail. This change modifies the signature of the internal LCD methods.
Diffstat (limited to 'pysnmp/entity')
-rw-r--r--pysnmp/entity/config.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pysnmp/entity/config.py b/pysnmp/entity/config.py
index ca1d82ed..65883104 100644
--- a/pysnmp/entity/config.py
+++ b/pysnmp/entity/config.py
@@ -578,12 +578,13 @@ def addVacmUser(snmpEngine, securityModel, securityName, securityLevel,
def delVacmUser(snmpEngine, securityModel, securityName, securityLevel,
- readSubTree=(), writeSubTree=(), notifySubTree=()):
+ readSubTree=(), writeSubTree=(), notifySubTree=(),
+ contextName=null):
(groupName, securityLevel, readView, writeView,
notifyView) = __cookVacmUserInfo(snmpEngine, securityModel,
securityName, securityLevel)
delVacmGroup(snmpEngine, securityModel, securityName)
- delVacmAccess(snmpEngine, groupName, null, securityModel, securityLevel)
+ delVacmAccess(snmpEngine, groupName, contextName, securityModel, securityLevel)
if readSubTree:
delVacmView(
snmpEngine, readView, readSubTree
@@ -597,7 +598,6 @@ def delVacmUser(snmpEngine, securityModel, securityName, securityLevel,
snmpEngine, notifyView, notifySubTree
)
-
# Notification target setup
def __cookNotificationTargetInfo(snmpEngine, notificationName, paramsName,