UNPKG

@joergmittaglawo/dmvconfig

Version:

DMV Configuration scripts for Lawo V__matrix Distributed Multiviewers.

62 lines (59 loc) 1.65 kB
/** * @file The Nodes for the RTVE DMV Cluster * * @version 0.0.0-alpha.0 * @date 2020-10-02 * @author Mittag, Jörg (Lawo) <joerg.mittag@lawo.com> * * @changelog 2020-10-02 JMi Zero-pad the hostname * @changelog 2020-10-02 JMi Swap front and rear addresses on DMV */ /** * The Nodes for the RTVE DMV Cluster * * @private * @readonly * @constant {object} */ const NODES = Array.from( { length: 16 }, (_, i) => i ).concat([21, 22, 23]).map(node => ( { // @ts-expect-error "hostname": `C100-${(node + 1).toString().padStart(2, "0")}`, "interfaces": { "management": { "back": { "ip": `10.104.62.${node + 101}`, "mask": 24, "gw": "10.104.62.254" }, "front": { "ip": `10.104.56.${node + 101}`, "mask": 24, "gw": "10.104.56.254" } }, "media": { "p1": { "ip": `10.104.2.${4 * node + 1}`, "mask": 30, "gw": `10.104.2.${4 * node + 2}`, }, "p2": { "ip": `10.104.32.${4 * node + 1}`, "mask": 30, "gw": `10.104.32.${4 * node + 2}`, } } }, "sdi": { "in": 10, "out": 10 } } ) ); module.exports = NODES;