noc.sa.models.selectorcache

Module Contents

noc.sa.models.selectorcache.logger
noc.sa.models.selectorcache.q_lock
class noc.sa.models.selectorcache.SelectorCache

Bases: mongoengine.document.Document

meta
object
selector
vc_domain
q_cache
_REFERRED_MODELS = ['sa.ManagedObjectProfile', 'main.PrefixTable', 'sa.AdministrativeDomain', 'ip.VRF', 'vc.VCDomain']
__str__(self)
classmethod refresh(cls)
classmethod get_object_selectors(cls, object)
classmethod is_in_selector(cls, object, selector)
classmethod get_active_selectors(cls)
classmethod ensure_models(cls)

Load all models referred from ManagedObjectSelector to fully initialize django models :return:

classmethod selectors_for_object(cls, object)
classmethod rebuild_for_object(cls, object)
noc.sa.models.selectorcache.refresh()
Rebuild selector cache job