Will put in full example json once I have those details.
Bottom line:
- Create an output dir called something like
/puv-results
- Each check should write back its own
check_name.json file into /puv-results
- the JSON has a specific structure that much be followed with existing details. New keys can be added into that structure.
rule completion structure example:
{
"syntheticMaintPValidate": {
"attributes": {
"description": "This validation checks whether the fault F606391 is present or not.",
"name": "Check LLDP/CDP Adjacency Fault",
"reason": "",
"recommended_action": "",
"rn": "rule-lldpCdpFaultcheck",
"ruleStatus": "passed",
"severity": "critical",
"status": "created,modified",
"sub_reason": "<fault>"
}
}
}
Will put in full example json once I have those details.
Bottom line:
/puv-resultscheck_name.jsonfile into/puv-resultsrule completion structure example:
{ "syntheticMaintPValidate": { "attributes": { "description": "This validation checks whether the fault F606391 is present or not.", "name": "Check LLDP/CDP Adjacency Fault", "reason": "", "recommended_action": "", "rn": "rule-lldpCdpFaultcheck", "ruleStatus": "passed", "severity": "critical", "status": "created,modified", "sub_reason": "<fault>" } } }