noc.core.confdb.applicator.stppriority

Module Contents

class noc.core.confdb.applicator.stppriority.DefaultSTPPriorityApplicator

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

Set platform’s STP priority if not set explicitly

CHECK_QUERY = Match('hints', 'protocols', 'spanning-tree', 'status') and Match('hints', 'protocols', 'spanning-tree', 'priority')
QUERY = ["Match('hints', 'protocols', 'spanning-tree', 'status', 'on') and Match('hints', 'protocols', 'spanning-tree', 'priority', X) and NotMatch('protocols', 'spanning-tree', 'priority') and Fact('protocols', 'spanning-tree', 'priority', X)"]