The connections list no longer breaks on a 400G fabric port
connUp offered the next PORT tier for a fabric (NNI) port, but fabric ports stop at 400G: NNI[3] was undefined and renderDash threw. Upstream code (85701db); the city panel already maps over NNI and is fine. Perf (jsdom, big network, vs4b922ab): no slowdowns beyond noise, routing identical.
This commit is contained in:
parent
4b922aba02
commit
e8808f605d
3 changed files with 6 additions and 1 deletions
|
|
@ -773,6 +773,10 @@ test('connections in the NOC dashboard can be upgraded and grown into LAGs right
|
|||
assert.equal(ev("S.nni[0].tier"), 1);
|
||||
assert.ok(tap('lagNni'), 'a fabric port bundles into a LAG too (#140)');
|
||||
assert.equal(ev("S.nni[0].n"), 2);
|
||||
// A fabric port at 400G is as big as fabric ports get: no upgrade button, and the list still draws.
|
||||
ev("S.nni[0].tier=NNI.length-1;compute();renderDash()");
|
||||
assert.equal(ev("!!document.querySelector('#dashCard [data-act=\"buyNni\"]')"), false, 'no fabric port above 400G');
|
||||
assert.ok(ev("!!document.querySelector('#dashCard [data-act=\"lagNni\"]')"), 'a LAG member is still offered');
|
||||
assert.equal(ev("document.getElementById('dash').hidden"), false);
|
||||
assert.deepEqual(errors, []);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue