Build standard: never take a fiber dark under a customer's wave; the intern no longer skips leased pairs and IRUs
The build standard's Apply could swap the line system on a fiber that carries a sold alien wave or a Lambda Bazaar managed wave, taking those customers dark for a day with no warning. The intern refused any fiber with any customer on it, leased pairs and IRUs included, though a line-system swap cannot touch them. One helper next to fiberOk(), dfWaveCust(), says whether a customer rides the fiber's line system (every fiber type but glass: dfpair, pairs, capfib), and both bstdDarkOk() and opsDarkPre() use it. bstdPlan() holds such a fiber (J.held) and lists it in J.wv; the sheet and the MCP quote give that reason. The link panel's own upgrade button (ACT.upSys) still swaps with a warning toast.
This commit is contained in:
parent
1f76639b8f
commit
286ae48207
14 changed files with 102 additions and 24 deletions
|
|
@ -69,6 +69,15 @@ test('no way around, or a customer on the fiber: no swap; bigger optics instead,
|
|||
heat(ev2);
|
||||
ev2('opsDay(S.day)');
|
||||
assert.equal(fiber(ev2).sys, 'lite');
|
||||
// A managed wave too. Leased pairs and IRUs are glass: the swap never touches them, so it goes ahead.
|
||||
for (const [type, sys] of [['mwave', 'lite'], ['dfpair', 'roadm'], ['pairs', 'roadm']]) {
|
||||
const { ev: ev3, errors: e3 } = game(t, `S.biz.push({id:'cx',name:'Customer',city:'fra',city2:'ams',type:'${type}',link:'f',slots:1,g:100,bw:1,rate:1})`);
|
||||
order(ev3, { at: 80, swap: false });
|
||||
heat(ev3);
|
||||
ev3('opsDay(S.day)');
|
||||
assert.equal(fiber(ev3).sys, sys, type);
|
||||
assert.deepEqual(e3, []);
|
||||
}
|
||||
assert.deepEqual(errors, []);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue