-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
281 bug unable to import ezexceptions with ezsnmp v200b0 (#285)
* Exceptions - created the exceptions.i interface file - updated other interface files to use the exceptions.i file - added the c+ code for the custom exception classes for EzSnmp. More can be added as needed. * exceptions.i - fixed and improvements to the new interface file. Not working yet, but getting closer. * Compiles - this version compiles. yay. - the exceptions interface file is now generated properly. * Custom Exceptions - starting to replace run_time errors with errors defined in `exceptions.h`. * Docs and Except - updated the docs with the new exception types - updated rest of runtime_errors * Tests, Docs, Fixes - attempted to use new exceptions in tests, that didn't work. I'll need to follow what I did for session.py and sessionbase.py - added GenericException to the interface - few doc fixes in development doc. * Compiles and new ExceptionBase - added an exceptionbase layer - the python3 wrapper adds the Exception python class and then sets up the rest of the custom errors. * Added Base To Name - added Base to the name of c++ errors - still working on the python wrapper. getting closer. * Closer - this get's us closer. I now see ` _exceptions.GenericErrorBase: sysDescripto.0: Unknown Object Identifier (Sub-id not found: (top) -> sysDescripto)` * Path Forward - current solution is to create a wrapper around netsnmp to catch exceptions from lower level calls and map them to simple names that don't have base in the name. * netsnmpbas - making the new netsnmpbase - making the new netsnmp wrapper python3 code around netsnmpbase * Black and clang - ran black - ran clang - organize alphabetically * Docs - working on docs, need to rerun doxygen and sphinx * test_netsnmp - test netsnmp tests, great start for POC. * Docs - saving doc work * Tests Results (101.34s (0:01:41)): 35 passed 60 failed * _handle_errror - forgot to commit the new handle_error common function. * Returns - forgot to add returns to the function calls. * test_session - the test_session tests now pass on their own. * tests/test_cache_v3.py - pass now 100 percent * tests/test_netsnmp.py - 100 percent pass now. * Sphinx Docs - updating the Docs to work again. Getting close. * Sphinx Docs - updated the index.rst with an example that works. - updated docs again.
- Loading branch information
1 parent
a2bf88e
commit 711a2e0
Showing
104 changed files
with
45,108 additions
and
11,569 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+3.56 KB
docs/doctrees/netsnmp_interface.doctree → docs/doctrees/netsnmpbase_interface.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file records the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: a7e07f5498711547e40528d7fc68b4d7 | ||
config: 23dc4f4eaa1626595159615d23355193 | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
Exceptions Python Module | ||
======================== | ||
|
||
.. automodule:: ezsnmp.exceptions | ||
:no-index: | ||
|
||
.. autoclass:: ezsnmp.exceptions.ConnectionError | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
:special-members: __init__ | ||
|
||
.. autoclass:: ezsnmp.exceptions.GenericError | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
:special-members: __init__ | ||
|
||
.. autoclass:: ezsnmp.exceptions.NoSuchInstanceError | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
:special-members: __init__ | ||
|
||
.. autoclass:: ezsnmp.exceptions.NoSuchNameError | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
:special-members: __init__ | ||
|
||
.. autoclass:: ezsnmp.exceptions.NoSuchObjectError | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
:special-members: __init__ | ||
|
||
.. autoclass:: ezsnmp.exceptions.PacketError | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
:special-members: __init__ | ||
|
||
.. autoclass:: ezsnmp.exceptions.ParseError | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
:special-members: __init__ | ||
|
||
.. autoclass:: ezsnmp.exceptions.TimeoutError | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
:special-members: __init__ | ||
|
||
.. autoclass:: ezsnmp.exceptions.UndeterminedTypeError | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
:special-members: __init__ | ||
|
||
.. autoclass:: ezsnmp.exceptions.UnknownObjectIDError | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
:special-members: __init__ | ||
|
||
.. autofunction:: ezsnmp.exceptions._handle_error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
Exceptions C++ Module | ||
===================== | ||
|
||
.. doxygenclass:: ConnectionErrorBase | ||
:project: EzSnmp | ||
:members: | ||
:private-members: | ||
:undoc-members: | ||
:protected-members: | ||
|
||
.. doxygenclass:: GenericErrorBase | ||
:project: EzSnmp | ||
:members: | ||
:private-members: | ||
:undoc-members: | ||
:protected-members: | ||
|
||
.. doxygenclass:: NoSuchInstanceErrorBase | ||
:project: EzSnmp | ||
:members: | ||
:private-members: | ||
:undoc-members: | ||
:protected-members: | ||
|
||
.. doxygenclass:: NoSuchNameErrorBase | ||
:project: EzSnmp | ||
:members: | ||
:private-members: | ||
:undoc-members: | ||
:protected-members: | ||
|
||
.. doxygenclass:: NoSuchObjectErrorBase | ||
:project: EzSnmp | ||
:members: | ||
:private-members: | ||
:undoc-members: | ||
:protected-members: | ||
|
||
.. doxygenclass:: PacketErrorBase | ||
:project: EzSnmp | ||
:members: | ||
:private-members: | ||
:undoc-members: | ||
:protected-members: | ||
|
||
.. doxygenclass:: ParseErrorBase | ||
:project: EzSnmp | ||
:members: | ||
:private-members: | ||
:undoc-members: | ||
:protected-members: | ||
|
||
.. doxygenclass:: TimeoutErrorBase | ||
:project: EzSnmp | ||
:members: | ||
:private-members: | ||
:undoc-members: | ||
:protected-members: | ||
|
||
.. doxygenclass:: UndeterminedTypeErrorBase | ||
:project: EzSnmp | ||
:members: | ||
:private-members: | ||
:undoc-members: | ||
:protected-members: | ||
|
||
.. doxygenclass:: UnknownObjectIDErrorBase | ||
:project: EzSnmp | ||
:members: | ||
:private-members: | ||
:undoc-members: | ||
:protected-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
exceptionsbase.i | ||
================ | ||
|
||
.. literalinclude:: ../../ezsnmp/interface/exceptionsbase.i | ||
:language: c++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
netsnmpbase.i | ||
============= | ||
|
||
.. literalinclude:: ../../ezsnmp/interface/netsnmpbase.i | ||
:language: c++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Python Session Module | ||
Session Python Module | ||
===================== | ||
|
||
.. automodule:: ezsnmp.session | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.