summaryrefslogtreecommitdiff
path: root/pysnmp
diff options
context:
space:
mode:
authorelie <elie>2015-09-21 06:32:31 +0000
committerelie <elie>2015-09-21 06:32:31 +0000
commit66b54b016bec3312059f0add5dcc8535d2a1a6c6 (patch)
treebb2972af4148112bd56aa9444ca858f83f0bb976 /pysnmp
parent8ede39948b4f6037012552bab20da2ff8376d715 (diff)
downloadpysnmp-66b54b016bec3312059f0add5dcc8535d2a1a6c6.tar.gz
more adjustments followed layout changes
Diffstat (limited to 'pysnmp')
-rw-r--r--pysnmp/entity/engine.py3
-rw-r--r--pysnmp/hlapi/__init__.py5
-rw-r--r--pysnmp/hlapi/asyncore/__init__.py1
-rw-r--r--pysnmp/hlapi/asyncore/_sync/cmdgen.py8
4 files changed, 11 insertions, 6 deletions
diff --git a/pysnmp/entity/engine.py b/pysnmp/entity/engine.py
index 97844bf..6a45474 100644
--- a/pysnmp/entity/engine.py
+++ b/pysnmp/entity/engine.py
@@ -14,6 +14,8 @@ from pysnmp.entity import observer
from pysnmp import debug
from pysnmp import error
+__all__ = ['SnmpEngine']
+
class SnmpEngine:
"""Creates SNMP engine object.
@@ -39,7 +41,6 @@ class SnmpEngine:
Examples
--------
- >>> from pysnmp.entity.engine import SnmpEngine
>>> SnmpEngine()
SnmpEngine(snmpEngineID=OctetString(hexValue='0x80004fb80567726f6d6d69742'))
>>>
diff --git a/pysnmp/hlapi/__init__.py b/pysnmp/hlapi/__init__.py
new file mode 100644
index 0000000..07adb5a
--- /dev/null
+++ b/pysnmp/hlapi/__init__.py
@@ -0,0 +1,5 @@
+from pysnmp.proto.rfc1902 import *
+from pysnmp.smi.rfc1902 import *
+from pysnmp.hlapi.auth import *
+from pysnmp.hlapi.context import *
+from pysnmp.entity.engine import SnmpEngine
diff --git a/pysnmp/hlapi/asyncore/__init__.py b/pysnmp/hlapi/asyncore/__init__.py
index 2f815b6..9753462 100644
--- a/pysnmp/hlapi/asyncore/__init__.py
+++ b/pysnmp/hlapi/asyncore/__init__.py
@@ -1,4 +1,3 @@
-# This file is necessary to make this directory a package.
from pysnmp.proto.rfc1902 import *
from pysnmp.smi.rfc1902 import *
from pysnmp.hlapi.auth import *
diff --git a/pysnmp/hlapi/asyncore/_sync/cmdgen.py b/pysnmp/hlapi/asyncore/_sync/cmdgen.py
index 357cc52..5cdb290 100644
--- a/pysnmp/hlapi/asyncore/_sync/cmdgen.py
+++ b/pysnmp/hlapi/asyncore/_sync/cmdgen.py
@@ -428,9 +428,9 @@ def bulkCmd(snmpEngine, authData, transportTarget, contextData,
maxRepetitions : int
`maxRepetitions` MIB variables are requested in response for each
- of the remaining MIB variables in the request (e.g. excluding
- `nonRepeaters`). Remote SNMP engine may choose lesser value than
- requested.
+ of the remaining MIB variables in the request (e.g. excluding
+ `nonRepeaters`). Remote SNMP engine may choose lesser value than
+ requested.
\*varBinds : :py:class:`~pysnmp.smi.rfc1902.ObjectType`
One or more class instances representing MIB variables to place
@@ -462,7 +462,7 @@ def bulkCmd(snmpEngine, authData, transportTarget, contextData,
errorStatus : str
True value indicates SNMP PDU error.
errorIndex : int
- Non-zero value refers to *varBinds[errorIndex-1]
+ Non-zero value refers to \*varBinds[errorIndex-1]
varBinds : tuple
A sequence of :py:class:`~pysnmp.smi.rfc1902.ObjectType` class
instances representing MIB variables returned in SNMP response.