summaryrefslogtreecommitdiff
path: root/pysnmp/proto
diff options
context:
space:
mode:
authorelie <elie>2015-09-20 18:40:58 +0000
committerelie <elie>2015-09-20 18:40:58 +0000
commit8ede39948b4f6037012552bab20da2ff8376d715 (patch)
treede0b67c276ef98e347fbbe3381c5820cc5ad5446 /pysnmp/proto
parent75905be006cc82d0880d5c01c35f8457726ac4ee (diff)
downloadpysnmp-8ede39948b4f6037012552bab20da2ff8376d715.tar.gz
major revamp:
* oneliner API moved to pysnmp.hlapi.asyncore location * all hlapi components now pulled from inner modules to into pysnmp.hlapi.asyncore. * LCD configuration moved from SNMP apps classes to be stand-alone * var-binds MIB<->protocol representation code moved from SNMP apps classes to be stand-alone
Diffstat (limited to 'pysnmp/proto')
-rw-r--r--pysnmp/proto/rfc1155.py3
-rw-r--r--pysnmp/proto/rfc1157.py3
-rw-r--r--pysnmp/proto/rfc1902.py4
-rw-r--r--pysnmp/proto/rfc1905.py6
4 files changed, 16 insertions, 0 deletions
diff --git a/pysnmp/proto/rfc1155.py b/pysnmp/proto/rfc1155.py
index 6f67f0a..4fb9aec 100644
--- a/pysnmp/proto/rfc1155.py
+++ b/pysnmp/proto/rfc1155.py
@@ -2,6 +2,9 @@ from pyasn1.type import univ, tag, constraint, namedtype
from pyasn1.error import PyAsn1Error
from pysnmp.proto import error
+__all__ = ['Opaque', 'NetworkAddress', 'ObjectName', 'TimeTicks',
+ 'Counter', 'Gauge', 'IpAddress']
+
class IpAddress(univ.OctetString):
tagSet = univ.OctetString.tagSet.tagImplicitly(
tag.Tag(tag.tagClassApplication, tag.tagFormatSimple, 0x00)
diff --git a/pysnmp/proto/rfc1157.py b/pysnmp/proto/rfc1157.py
index 4483cf1..6fd1643 100644
--- a/pysnmp/proto/rfc1157.py
+++ b/pysnmp/proto/rfc1157.py
@@ -1,6 +1,9 @@
from pyasn1.type import univ, tag, namedtype, namedval
from pysnmp.proto import rfc1155
+__all__ = ['GetNextRequestPDU', 'GetResponsePDU', 'SetRequestPDU',
+ 'TrapPDU', 'GetRequestPDU']
+
class VarBind(univ.Sequence):
componentType = namedtype.NamedTypes(
namedtype.NamedType('name', rfc1155.ObjectName()),
diff --git a/pysnmp/proto/rfc1902.py b/pysnmp/proto/rfc1902.py
index b284140..08e64ab 100644
--- a/pysnmp/proto/rfc1902.py
+++ b/pysnmp/proto/rfc1902.py
@@ -1,6 +1,10 @@
from pyasn1.type import univ, tag, constraint, namedtype, namedval
from pysnmp.proto import rfc1155, error
+__all__ = ['Opaque', 'TimeTicks', 'Bits', 'Integer', 'OctetString',
+ 'IpAddress', 'Counter64', 'Unsigned32', 'Gauge32', 'Integer32',
+ 'ObjectIdentifier', 'Counter32']
+
class Integer32(univ.Integer):
"""Creates an instance of SNMP Integer32 class.
diff --git a/pysnmp/proto/rfc1905.py b/pysnmp/proto/rfc1905.py
index e77912f..945b32b 100644
--- a/pysnmp/proto/rfc1905.py
+++ b/pysnmp/proto/rfc1905.py
@@ -1,6 +1,12 @@
from pyasn1.type import univ, tag, constraint, namedtype, namedval
from pysnmp.proto import rfc1902
+__all__ = ['unSpecified', 'EndOfMibView', 'ReportPDU', 'UnSpecified',
+ 'BulkPDU', 'SNMPv2TrapPDU', 'GetRequestPDU', 'NoSuchObject',
+ 'GetNextRequestPDU', 'GetBulkRequestPDU', 'NoSuchInstance',
+ 'ResponsePDU', 'noSuchObject', 'InformRequestPDU', 'endOfMibView',
+ 'SetRequestPDU', 'noSuchInstance']
+
# Value reference -- max bindings in VarBindList
max_bindings = rfc1902.Integer(2147483647)