pysmi icon indicating copy to clipboard operation
pysmi copied to clipboard

MibCompiler fails if dependent MIBs only available to searchers

Open srenfo opened this issue 4 years ago • 1 comments

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.

srenfo avatar Jun 19 '20 07:06 srenfo

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

ainiml avatar Jul 29 '20 22:07 ainiml