SnmpKit.MIB.Resolver (snmpkit v2.0.1)
Pure functions over name->OID and OID->name maps: forward and reverse
lookups (with instance suffixes), children, subtree walks and normalisation
of parsed OID representations. SnmpKit.SnmpMgr.MIB holds the maps; this
module never touches process state, so it is safe to call from anywhere.
Summary
Functions
Resolves the OIDs of a MIB's definitions (parsed maps or a compiled
symbols table) to full integer lists.
Functions
@spec resolve_definition_oids([map()] | %{required(String.t()) => map()}, %{ required(String.t()) => [integer()] }) :: %{required(String.t()) => [integer()]}
Resolves the OIDs of a MIB's definitions (parsed maps or a compiled
symbols table) to full integer lists.
Definitions carry either an absolute OID, a {parent_name, sub_ids} tuple,
or (for OBJECT IDENTIFIER assignments) parent and sub_index fields.
Parents are looked up in known (names already in the registry) and among
the definitions themselves, iterating until nothing more resolves, so
definition order does not matter. Returns %{name => oid_list}.