noc.sa.models.objectdata

Module Contents

noc.sa.models.objectdata.id_lock
noc.sa.models.objectdata.neighbor_lock
noc.sa.models.objectdata.logger
class noc.sa.models.objectdata.ObjectData

Bases: mongoengine.document.Document

meta
object
rca_neighbors
adm_path
segment_path
container_path
_id_cache
_neighbor_cache
classmethod _get_by_id(cls, object_id)
classmethod get_by_id(cls, object)
classmethod _get_neighbors(cls, object_id)
classmethod get_neighbors(cls, object)

Returns uplinks for list of objects :param objects: List of object :return: dict of object id -> uplinks

Update ObjectUplinks in database :param uplinks: Iterable of ObjectUplinks :return:

classmethod refresh_path(cls, obj)