From f2966ad248e3fde26f53c5530129a597f4d150e5 Mon Sep 17 00:00:00 2001 From: d00f <8052722+DrDoof@users.noreply.github.com> Date: Sat, 5 Sep 2026 13:28:14 +0200 Subject: [PATCH] lag gui: create the group the page says it is creating The LAG page draws four sections headed LAG 1 to LAG 4 and wires their buttons to lagSub(0) through lagSub(3), which then sends the index straight through as the group number. So the first button asks for "lag 0", which the parser rejects, and the page shows nothing at all because the error only goes to the console. Every other button is off by one: the section headed LAG 2 creates group 1. The index stays 0-based for the element ids and only the command gets the 1-based number the CLI documents. --- html/lag.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/lag.js b/html/lag.js index 2c56d1a5..2a4e4f26 100644 --- a/html/lag.js +++ b/html/lag.js @@ -57,7 +57,7 @@ function fetchLag() { sendXHTTP(xhttp); } async function lagSub(l) { - var cmd = "lag " + l; + var cmd = "lag " + (l + 1); for (let i = 1; i <= numPorts; i++) { if (document.getElementById("p_mLAG"+l+"_"+i).checked) cmd = cmd + ` ${i}`;