noc.core.confdb.applicator.cdpstatus

Module Contents

class noc.core.confdb.applicator.cdpstatus.DefaultCDPStatusApplicator

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

Apply non-disabled CDP interfaces

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