noc.cm.validators.object.interfacedescriptions

Module Contents

class noc.cm.validators.object.interfacedescriptions.InterfaceDescriptionsValidator

Bases: noc.cm.validators.clipsobject.CLIPSObjectValidator

TITLE = All active interfaces *MUST HAVE* descriptions
DESCRIPTION = All active interfaces must have descriptions
TAGS = ['description']
RULES = ['\n (defrule {{RULENAME}}-{{RULENUM}}\n ?i <- (interface (admin_status 1) (description nil) (name ?n))\n =>\n (assert\n (error (type "Interface | No Description")\n (obj ?n)))\n )\n ', '\n (defrule {{RULENAME}}-{{RULENUM}}\n ?i <- (subinterface (admin_status 1) (description nil) (name ?n))\n =>\n (assert\n (error (type "Interface | No Description")\n (obj ?n)))\n )\n ']