UNPKG

@joergmittaglawo/dmvconfig

Version:

DMV Configuration scripts for Lawo V__matrix Distributed Multiviewers.

73 lines (68 loc) 1.42 kB
/** * @file The Nodes for the Gamecreek OB 3 Gridiron DMV. * * @version 0.0.0-alpha.0 * @date 2020-03-23 * @author Mittag, Jörg (Lawo) <joerg.mittag@lawo.com> */ /** * The number of C100 DMV Cluster Nodes for the Gamecreek OB 3 Gridiron Unit A DMV * * @readonly * @constant {number} */ const NUMBER_OF_NODES_A = 24; /** * The number of C100 DMV Cluster Nodes for the Gamecreek OB 3 Gridiron Unit B DMV * * @readonly * @constant {number} */ const NUMBER_OF_NODES_B = 12; /** * The Nodes for the Gamecreek OB 3 Gridiron DMV * * @private * @readonly * @constant {object} */ const NODES = Array.from( { length: NUMBER_OF_NODES_A }, (_, node) => ( { hostname: `GridironDMV${node.toString().padStart(2, '0')}`, interfaces: { management: { back: { ip: `10.44.7.${100 + node}`, }, }, }, sdi: { in: 0, out: 0, }, } ), ).concat( Array.from( { length: NUMBER_OF_NODES_B }, (_, node) => ( { hostname: `GridironDMV${(node + NUMBER_OF_NODES_A).toString().padStart(2, '0')}`, interfaces: { management: { back: { ip: `10.45.7.${100 + node}`, }, }, }, sdi: { in: 0, out: 0, }, } ), ), ); module.exports = NODES;