The connections list no longer breaks on a 400G fabric port
Some checks failed
CI / plan (push) Has been cancelled
CI / build (push) Has been cancelled
CI / translations (push) Has been cancelled
CI / part (push) Has been cancelled
CI / test (push) Has been cancelled
CI / timings (push) Has been cancelled

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, vs 4b922ab): no slowdowns beyond noise, routing
identical.
This commit is contained in:
jvanvik 2026-11-07 10:33:22 +01:00
parent 4b922aba02
commit e8808f605d
3 changed files with 6 additions and 1 deletions

View file

@ -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, []);
});