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:
@@ -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": []
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
@@ -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'
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -89,6 +89,11 @@
|
||||
asn: 15562
|
||||
ignoreMorespecifics: false
|
||||
|
||||
2001:db8:123::/48:
|
||||
description: exact matching test
|
||||
asn: 65000
|
||||
ignoreMorespecifics: false
|
||||
|
||||
options:
|
||||
monitorASns:
|
||||
2914:
|
||||
|
||||
Reference in New Issue
Block a user