Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MibCompiler fails if dependent MIBs only available to searchers #59

Open
srenfo opened this issue Jun 19, 2020 · 1 comment
Open

MibCompiler fails if dependent MIBs only available to searchers #59

srenfo opened this issue Jun 19, 2020 · 1 comment

Comments

@srenfo
Copy link

srenfo commented Jun 19, 2020

Say you have an MIB in source form, e.g. VOGON-POEM-MIB. It has dependencies that are already available in compiled form but not (currently) in source form, e.g. SNMPv2-SMI.py since that's bundled with PySNMP.

Create a MibCompiler and addSource such that only the first MIB can be found in source form. Then addSearchers such that the dependencies can be found in compiled form.

MibCompiler.compile will then fail because it will only check the searchers if the sources for the dependencies are also available.

This makes it hard to use the precompiled files in pysnmp.smi.mibs. No combination of searchers and borrowers will fix this situation as far as I can tell.

This may be working as intended or I may be misunderstanding something.

@ainiml
Copy link

ainiml commented Jul 29, 2020

Is there a way to feed all the MIB files in, and return all the aliases and descriptions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants