summaryrefslogtreecommitdiff
path: root/pysnmp/entity
diff options
context:
space:
mode:
authorelie <elie>2006-05-21 11:35:21 +0000
committerelie <elie>2006-05-21 11:35:21 +0000
commit69ebe618dafab132797e83d517223b489aa994f8 (patch)
tree5ed7ba878a5d6462e368a5ba3f01f1be58faaf02 /pysnmp/entity
parentaed3bf7b69b9a9115eec5c298c68fcc4962bf39e (diff)
downloadpysnmp-git-69ebe618dafab132797e83d517223b489aa994f8.tar.gz
manually initialize snmpCommunityStorageType as it's not done by MIB
Diffstat (limited to 'pysnmp/entity')
-rw-r--r--pysnmp/entity/config.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pysnmp/entity/config.py b/pysnmp/entity/config.py
index 5b4cc087..e554df47 100644
--- a/pysnmp/entity/config.py
+++ b/pysnmp/entity/config.py
@@ -79,6 +79,11 @@ def addV1System(snmpEngine, securityName, communityName,
)
snmpCommunityTransportTag.syntax = snmpCommunityTransportTag.syntax.clone(snmpCommunityTransportTag)
+ snmpCommunityStorageType = snmpCommunityEntry.getNode(
+ snmpCommunityEntry.name + (7,) + tblIdx
+ )
+ snmpCommunityStorageType.syntax = snmpCommunityStorageType.syntax.clone('nonVolatile')
+
def addV3User(snmpEngine, securityName,
authProtocol=usmNoAuthProtocol, authKey='',
privProtocol=usmNoPrivProtocol, privKey='',