noc.inv.models.modelinterface

Module Contents

noc.inv.models.modelinterface.id_lock
noc.inv.models.modelinterface.T_MAP
noc.inv.models.modelinterface.A_TYPE = ['str', 'int', 'float', 'bool', 'objectid', 'ref', 'strlist']
class noc.inv.models.modelinterface.ModelInterfaceAttr

Bases: mongoengine.document.EmbeddedDocument

meta
name
type
description
required
is_const
__str__(self)
__eq__(self, v)
_clean(self, value)
clean_str(self, value)
clean_int(self, value)
clean_float(self, value)
clean_bool(self, value)
class noc.inv.models.modelinterface.ModelInterface

Bases: mongoengine.document.Document

Equipment vendor

meta
name
description
attrs
uuid
_id_cache
__str__(self)
get_attr(self, name)
to_json(self)
get_json_path(self)
classmethod clean_data(cls, data)

Convert types accoding to interface

classmethod get_interface_attr(cls, interface, key)