noc.inv.models.platform

Module Contents

noc.inv.models.platform.id_lock
class noc.inv.models.platform.Platform

Bases: mongoengine.document.Document

meta
vendor
name
description
full_name
start_of_sale
end_of_sale
end_of_support
end_of_xsupport
snmp_sysobjectid
uuid
aliases
tags
bi_id
_id_cache
_bi_id_cache
_ensure_cache
is_end_of_sale

Check if platform reached end-of-sale mark :return:

is_end_of_support

Check if platform reached end-of-support mark :return:

__str__(self)
clean(self)
save(self, *args, **kwargs)
classmethod get_by_id(cls, id)
classmethod get_by_bi_id(cls, id)
to_json(self)
get_json_path(self)
classmethod ensure_platform(cls, vendor, name, strict=False, tags=None)

Get or create platform by vendor and code :param vendor: :param name: :param strict: Return None if platform is not found :param tags: List of platform tags :return:

merge_platform(self, alias)

Merge alias platform :param alias: platform name :return: