pysmi
pysmi copied to clipboard
MibCompiler fails if dependent MIBs only available to searchers
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.
Is there a way to feed all the MIB files in, and return all the aliases and descriptions?