noc.core.confdb.applicator.stpstatus

Module Contents

class noc.core.confdb.applicator.stpstatus.DefaultSTPStatusApplicator

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

Apply STP on interfaces

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