Skip to content

MibCompiler fails if dependent MIBs only available to searchers #59

@srenfo

Description

@srenfo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions