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

fixed ipv6 matching issue

This commit is contained in:
Massimo Candela
2020-01-24 15:14:17 +01:00
parent 7d2e714d9e
commit 1a0e4ae0ef
10 changed files with 95 additions and 155 deletions

View File

@@ -179,7 +179,7 @@ describe("Composition", function() {
it("loading prefixes", function () {
expect(input.prefixes.length).to.equal(13);
expect(input.prefixes.length).to.equal(14);
expect(JSON.parse(JSON.stringify(input))).to
.containSubset({
@@ -283,6 +283,16 @@ describe("Composition", function() {
"ignore": false,
"excludeMonitors" : [],
"includeMonitors": []
},
{
"asn": [65000],
"description": "exact matching test",
"ignoreMorespecifics": false,
"prefix": "2001:db8:123::/48",
"group": "default",
"ignore": false,
"excludeMonitors" : [],
"includeMonitors": []
}
]
});

View File

@@ -60,6 +60,12 @@ describe("Alerting", function () {
origin: 'withdrawal-detection',
affected: "204092-45",
message: 'The prefix 2a00:5884::/32 (alarig fix test) has been withdrawn. It is no longer visible from 4 peers'
},
"2001:db8:123::/48": {
id: '2001:db8:123::/48',
origin: 'withdrawal-detection',
affected: 65000,
message: 'The prefix 2001:db8:123::/48 (exact matching test) has been withdrawn. It is no longer visible from 4 peers'
}
};

View File

@@ -89,6 +89,11 @@
asn: 15562
ignoreMorespecifics: false
2001:db8:123::/48:
description: exact matching test
asn: 65000
ignoreMorespecifics: false
options:
monitorASns:
2914: