noc.fm.models.mib

Module Contents

noc.fm.models.mib.id_lock
noc.fm.models.mib.rx_tailing_numbers
class noc.fm.models.mib.MIB

Bases: mongoengine.document.Document

meta
name
description
last_updated
depends_on
typedefs
version
_id_cache
_name_cache
depended_by
__str__(self)
classmethod get_by_id(cls, id)
classmethod get_by_name(cls, name)
classmethod parse_syntax(cls, syntax)

Process part of smidump output and convert to syntax structure

load_data(self, data)

Load mib data from list of {oid:, name:, description:, syntax:} :param data: :return:

classmethod get_oid(cls, name)

Get OID by name

classmethod get_name(cls, oid)

Get longest match name by OID

classmethod get_name_and_syntax(cls, oid)
Returns:(name, syntax)
classmethod get_description(cls, name)

Get longest match description by name

clean(self)

Gracefully wipe out MIB data

classmethod resolve_vars(cls, vars)

Resolve FM key -> value dict according to MIBs

Parameters:
  • cls
  • vars
Returns: