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:
@@ -105,7 +105,7 @@ export default class MonitorRPKI extends Monitor {
|
|||||||
_validate = (result, message, matchedRule) => {
|
_validate = (result, message, matchedRule) => {
|
||||||
const prefix = result.prefix;
|
const prefix = result.prefix;
|
||||||
const origin = result.origin.getValue();
|
const origin = result.origin.getValue();
|
||||||
if (result) {
|
if (result && !this.rpki.getStatus().stale) {
|
||||||
|
|
||||||
const cacheKey = "a" + [prefix, origin]
|
const cacheKey = "a" + [prefix, origin]
|
||||||
.join("-")
|
.join("-")
|
||||||
@@ -124,7 +124,7 @@ export default class MonitorRPKI extends Monitor {
|
|||||||
matchedRule,
|
matchedRule,
|
||||||
message,
|
message,
|
||||||
{ covering: null, valid: null, roaDisappeared: true, subType: "rpki-disappear" });
|
{ 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,
|
this.publishAlert(key,
|
||||||
prefix,
|
prefix,
|
||||||
matchedRule,
|
matchedRule,
|
||||||
|
Reference in New Issue
Block a user