noc.core.confdb.applicator.loopdetectstatus

Module Contents

class noc.core.confdb.applicator.loopdetectstatus.DefaultLoopDetectStatusApplicator

Bases: noc.core.confdb.applicator.query.QueryApplicator

Apply loop-detect status

CHECK_QUERY = Match('hints', 'protocols', 'loop-detect', 'status')
QUERY = ["Match('hints', 'protocols', 'loop-detect', 'status', 'on') and Match('interfaces', X, 'type', 'physical') and Match('interfaces', X, 'admin-status', 'on') and NotMatch('hints', 'protocols', 'loop-detect', 'interface', X, 'off') and NotMatch('protocols', 'loop-detect', 'interface', X) and Fact('protocols', 'loop-detect', 'interface', X)"]