1
0
mirror of https://github.com/nttgin/BGPalerter.git synced 2024-05-19 06:50:08 +00:00

check for stale vrp before validate

This commit is contained in:
Massimo Candela
2023-02-23 16:47:43 +01:00
parent e6e06e1bbb
commit 974bed4580

View File

@@ -105,7 +105,7 @@ export default class MonitorRPKI extends Monitor {
_validate = (result, message, matchedRule) => {
const prefix = result.prefix;
const origin = result.origin.getValue();
if (result) {
if (result && !this.rpki.getStatus().stale) {
const cacheKey = "a" + [prefix, origin]
.join("-")
@@ -124,7 +124,7 @@ export default class MonitorRPKI extends Monitor {
matchedRule,
message,
{ covering: null, valid: null, roaDisappeared: true, subType: "rpki-disappear" });
} else if (this.params.checkUncovered && !this.rpki.getStatus().stale) {
} else if (this.params.checkUncovered) {
this.publishAlert(key,
prefix,
matchedRule,