summaryrefslogtreecommitdiff
path: root/pysnmp/proto/acmod
diff options
context:
space:
mode:
authorelie <elie>2005-06-15 07:50:06 +0000
committerelie <elie>2005-06-15 07:50:06 +0000
commitc95309276c8555bfc4e41f76cebee189d8c13e09 (patch)
tree934f906f9cf9896192b5d486dd156c8d6c888967 /pysnmp/proto/acmod
parent4ef5b70ba44bbe6a7a1712241d725b697994e041 (diff)
downloadpysnmp-git-c95309276c8555bfc4e41f76cebee189d8c13e09.tar.gz
__main__ code dropped
Diffstat (limited to 'pysnmp/proto/acmod')
-rw-r--r--pysnmp/proto/acmod/rfc3415.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/pysnmp/proto/acmod/rfc3415.py b/pysnmp/proto/acmod/rfc3415.py
index 81e8a8da..8c006c2d 100644
--- a/pysnmp/proto/acmod/rfc3415.py
+++ b/pysnmp/proto/acmod/rfc3415.py
@@ -108,16 +108,5 @@ def isAccessAllowed(
# 3.2.5c
return error.StatusInformation(errorIndication='accessAllowed')
-if __name__ == '__main__':
- from pysnmp.entity import engine, config
-
- snmpEngine = engine.SnmpEngine()
-
- config.addRoUser(snmpEngine, 'test-user', 1, (1,3,6,1,2,1,2,2,1,1))
-
- isAccessAllowed(
- snmpEngine, 3, 'test-user', 1, 'read', '', (1,3,6,1,2,1,2,2,1,1,22)
- )
-
# XXX
# develop a non-intrum-based management objects access methods