This repository has been archived by the owner on Dec 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improved the dynamic MIB loading (#41)
* fix: (semgrep) use yaml::safe_load instead of yaml::load * fix: added unit-test for HOST-RESOURCES-MIB * fix: partial fix for dynamic MIB loading - I have just rewritten a very-basic lookup that works. I don't fully understand the mongodb-related part, but at least this should give us a basic point where we can start from. * fix: partial fix for dynamic MIB loading - Fixed one MIB file name in unit-test * fix: partial fix for dynamic MIB loading - Fixed one MIB file name in unit-test (and removed useless lookups) * fix: removed unexpected argument for yaml.safe_load * fix: partial fix for dynamic MIB loading - Fixed the find_mib_file method to add a feature that searching the MIBs using the OID without index * fix: partial fix for dynamic MIB loading - changed to find/load all mapping MIBs instead of find/load one. - changed unit-test to test HOST-RESOURCES-MIB instead of NETSERVER-MIB. - Note/Finding: After loading all the mapping MIBs, only the last loaded MIB is used to do the translation. * fix: partial fix for dynamic MIB loading - fixed to lazy load extra MIBs only when the exception is a non-OBJECT-TYPE exception * fix: fixed the cla-assistant version * fix: (semgrep) use yaml::safe_load instead of yaml::load * fix: added unit-test for HOST-RESOURCES-MIB * fix: partial fix for dynamic MIB loading - I have just rewritten a very-basic lookup that works. I don't fully understand the mongodb-related part, but at least this should give us a basic point where we can start from. * fix: partial fix for dynamic MIB loading - Fixed one MIB file name in unit-test * fix: partial fix for dynamic MIB loading - Fixed one MIB file name in unit-test (and removed useless lookups) * fix: removed unexpected argument for yaml.safe_load * fix: partial fix for dynamic MIB loading - Fixed the find_mib_file method to add a feature that searching the MIBs using the OID without index * fix: partial fix for dynamic MIB loading - changed to find/load all mapping MIBs instead of find/load one. - changed unit-test to test HOST-RESOURCES-MIB instead of NETSERVER-MIB. - Note/Finding: After loading all the mapping MIBs, only the last loaded MIB is used to do the translation. * fix: partial fix for dynamic MIB loading - fixed to lazy load extra MIBs only when the exception is a non-OBJECT-TYPE exception * fix: removed the failed CI step: Upload result to GitHub Code Scanning * refactor: refactor to remove the duplicate code * fix: reformatted to pass the lint checks * fix: dummy commit to resolve lint issue by running suggested pip command - python3 -m pip install types-PyYAML * fix: added types-PyYAML Co-authored-by: lstoppa <lstoppa@splunk.com>
- Loading branch information
Showing
9 changed files
with
122 additions
and
105 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -18,5 +18,3 @@ HPR-IP-MIB | |
PYSNMP-MIB | ||
PYSNMP-SOURCE-MIB | ||
PYSNMP-USM-MIB | ||
VMSTORE-MIB | ||
VERITAS-APPLIANCE-MONITORING-MIB |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
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.