noc.inv.models.vendor

Module Contents

noc.inv.models.vendor.id_lock
class noc.inv.models.vendor.Vendor

Bases: mongoengine.document.Document

Equipment vendor

meta
name
full_name
uuid
code
site
bi_id
_id_cache
_bi_id_cache
_code_cache
_ensure_cache
__str__(self)
classmethod get_by_id(cls, id)
classmethod get_by_bi_id(cls, id)
classmethod _get_by_code(cls, code)

Uncached version of get_by_code :param code: :return:

classmethod get_by_code(cls, code)
clean(self)
on_save(self)
to_json(self)
get_json_path(self)
classmethod ensure_vendor(cls, code)

Get or create vendor by code :param code: :return: