mirror of
https://github.com/nttgin/BGPalerter.git
synced 2024-05-19 06:50:08 +00:00
added support for external config manager and for user groups definition file (#489)
* refactoring to support external configuration module * allow for external connectors * refactored retrieval of roa flat data structure now delegated to rpk-validator lib * introduced support for external user group config file * increased test coverage * external group file documentation * improve documentation on generatePrefixListEveryDays (#482) * add comments on test connectors (#497)
This commit is contained in:
6
index.js
6
index.js
@@ -187,5 +187,9 @@ switch(params._[0]) {
|
||||
global.DRY_RUN = !!params.t;
|
||||
if (global.DRY_RUN) console.log("Testing BGPalerter configuration. WARNING: remove -t option for production monitoring.");
|
||||
const Worker = require("./src/worker").default;
|
||||
module.exports = new Worker(params.c, params.d);
|
||||
module.exports = new Worker({
|
||||
configFile: params.c,
|
||||
volume: params.d,
|
||||
groupFile: params.E
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user