noc.core.mib

Module Contents

noc.core.mib.logger
class noc.core.mib.MIBRegistry

Bases: object

PATHS
load_lock
__getitem__(self, item: Union[str, Tuple[str, int]])
static mib_to_modname(name: str)

Convert MIB name to module name (without .py) :param name: MIB name, like IF-MIB :return: Module name, like if_mib

load_mib(self, name: str)

Load MIB by name

Parameters

name – MIB name, like IF-MIB

Returns

is_loaded(self, name: str)

Check MIB is loaded :param name: :return:

reset(self)

Reset MIB cache

Returns

static longest_match(d: Dict[str, Any], k: str)

Returns longest match of key k in dict d :param d: :param k: :return:

render(self, oid: str, value: bytes, display_hints: Dict[str, Callable[[str, bytes], Union[str, bytes]]] = None)

Apply display-hint :return:

noc.core.mib.mib