Search documentation of snmpkit

# SnmpKit.SnmpSim.MIB.Compiler (snmpkit v1.2.0)

MIB Compiler for SNMP Simulator (Elixir)

- Compiles MIB files using MIB parsing and compilation.
- Handles MIB dependencies via IMPORTS parsing and topological sort.
- Does NOT use any Erlang SNMP APIs.
- Does NOT introspect MIB objects at runtime (for that, parse the compiled MIBs yourself).

This module provides MIB compilation functionality for SNMP simulation.

# Summary

## Functions

compile_mib_directory(mib_dir, opts \\ [])

Compile all .mib files in `mib_dir` (recursively resolves dependencies). Returns a list of {mibfile, {:ok, } | {:error, _}}.

compile_mib_files(mib_files, include_dirs \\ [])

Compile a list of MIB files (in dependency order). Returns a list of {mibfile, {:ok, } | {:error, _}}.

# Functions

# compile_mib_directory(mib_dir, opts \\ [])

Compile all .mib files in `mib_dir` (recursively resolves dependencies). Returns a list of {mibfile, {:ok, } | {:error, _}}.

# compile_mib_files(mib_files, include_dirs \\ [])

Compile a list of MIB files (in dependency order). Returns a list of {mibfile, {:ok, } | {:error, _}}.