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

added -i flag for ignoring delegated prefixes

This commit is contained in:
Massimo Candela
2019-09-17 22:24:36 +02:00
parent a64d64881f
commit c361d8c8d7
2 changed files with 17 additions and 7 deletions

View File

@@ -51,7 +51,11 @@ const params = yargs
.alias('e', 'exclude')
.nargs('e', 1)
.describe('e', 'Prefixes to exclude (optional)')
.describe('e', 'Prefixes to exclude')
.alias('i', 'ignore-delegated')
.nargs('i', 0)
.describe('i', 'Ignore delegated prefixes')
.demandOption(['o', 'a'])
})
@@ -66,7 +70,12 @@ const params = yargs
switch(params._[0]) {
case "generate":
const generatePrefixes = require("./generatePrefixesList");
generatePrefixes(params.a.toString(), params.o, (params.e || "").split(","));
generatePrefixes(
params.a.toString(),
params.o,
(params.e || "").split(","),
params.i || false
);
break;
default: // Run monitor