noc.core.confdb.applicator.lldpstatus

Module Contents

class noc.core.confdb.applicator.lldpstatus.DefaultLLDPStatusApplicator

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

Apply non-disabled LLDP interfaces

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