mirror of
https://github.com/nttgin/BGPalerter.git
synced 2024-05-19 06:50:08 +00:00
added path into rpki report
This commit is contained in:
@@ -51,7 +51,7 @@ export default class MonitorRPKI extends Monitor {
|
|||||||
const coveringString = (covering) ? `Valid ROA: origin AS${covering.origin} prefix ${covering.prefix} max length ${covering.maxLength}` : '';
|
const coveringString = (covering) ? `Valid ROA: origin AS${covering.origin} prefix ${covering.prefix} max length ${covering.maxLength}` : '';
|
||||||
|
|
||||||
if (extra.valid === null && this.params.checkUncovered) {
|
if (extra.valid === null && this.params.checkUncovered) {
|
||||||
return `The route ${message.prefix} announced by ${message.originAS} is not covered by a ROA.`;
|
return `The route ${message.prefix} announced by ${message.originAS} is not covered by a ROA. Accepted with AS path: ${message.path}`;
|
||||||
} else {
|
} else {
|
||||||
return `The route ${message.prefix} announced by ${message.originAS} is not RPKI valid. Accepted with AS path: ${message.path}. ${coveringString}`;
|
return `The route ${message.prefix} announced by ${message.originAS} is not RPKI valid. Accepted with AS path: ${message.path}. ${coveringString}`;
|
||||||
}
|
}
|
||||||
|
@@ -544,7 +544,7 @@ describe("Alerting", function () {
|
|||||||
id: "a8_8_8_8_22AS2914",
|
id: "a8_8_8_8_22AS2914",
|
||||||
origin: 'rpki-monitor',
|
origin: 'rpki-monitor',
|
||||||
affected: '8.8.8.8/22',
|
affected: '8.8.8.8/22',
|
||||||
message: 'The route 8.8.8.8/22 announced by AS2914 is not covered by a ROA.',
|
message: 'The route 8.8.8.8/22 announced by AS2914 is not covered by a ROA. Accepted with AS path: [1,2,3,4321,5060,2914]',
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user