noc.sa.models.objectcapabilities

Module Contents

noc.sa.models.objectcapabilities.logger
class noc.sa.models.objectcapabilities.CapsItem

Bases: mongoengine.document.EmbeddedDocument

capability
value
source
__str__(self)
class noc.sa.models.objectcapabilities.ObjectCapabilities

Bases: mongoengine.document.Document

meta
object
caps
__str__(self)
on_save(self)
iter_changed_datastream(self, changed_fields=None)
classmethod get_capabilities(cls, object)

Resolve object capabilities :param object: ManagedObject instance or id :return: dict of capability name -> current value

classmethod update_capabilities(cls, object, caps, source)

Update stored capabilities :param object: :param caps: :param source: :return: