noc.cm.models.interfacevalidationpolicy

Module Contents

noc.cm.models.interfacevalidationpolicy.id_lock
class noc.cm.models.interfacevalidationpolicy.InterfaceValidationRule

Bases: mongoengine.document.EmbeddedDocument

query
query_params
filter_query
is_active
error_code
error_text_template
alarm_class
is_fatal
__str__(self)
class noc.cm.models.interfacevalidationpolicy.InterfaceValidationPolicy

Bases: mongoengine.document.Document

meta
name
description
filter_query
rules
_id_cache
__str__(self)
classmethod get_by_id(cls, id)
iter_problems(self, engine, ifname)

Check rules against ConfDB engine

Parameters:
  • engine – ConfDB Engine instance
  • ifname – Interface name
Returns:

List of problems