diff --git a/config.yml.example b/config.yml.example index 9ff5faf..98341dc 100644 --- a/config.yml.example +++ b/config.yml.example @@ -127,6 +127,7 @@ reports: # hijack: "++BGPalerter-5-${type}: ${summary}|${prefix}|${description}|${asn}|${newprefix}|${neworigin}|${earliest}|${latest}|${peers}" # newprefix: "++BGPalerter-4-${type}: ${summary}|${prefix}|${description}|${asn}|${newprefix}|${neworigin}|${earliest}|${latest}|${peers}" # visibility: "++BGPalerter-5-${type}: ${summary}|${prefix}|${description}|${asn}|${earliest}|${latest}|${peers}" +# misconfiguration: "++BGPalerter-3-${type}: ${summary}|${asn}|${prefix}|${earliest}|${latest}" diff --git a/src/reports/report.js b/src/reports/report.js index 6ce1204..60a5219 100644 --- a/src/reports/report.js +++ b/src/reports/report.js @@ -137,6 +137,7 @@ export default class Report { break; case "misconfiguration": + context.asn = content.data[0].matchedRule.asn.toString(); content.data .map(i => JSON.stringify(i.matchedMessage.path.getValues().slice(1))) .forEach(path => {