From 6b39bcc4487e2f76a38a78a3654f454ebb29b3bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20van=20Dorst?= Date: Wed, 2 Sep 2026 19:42:51 +0200 Subject: [PATCH] JS: vlan don't accept `u`-suffic anymore. Als update CHANGELOG about CPU_PORT --- CHANGELOG.md | 5 +++++ html/config.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f0c5813a..168bd34f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,11 @@ - VLAN don't accept port `u`-suffix anymore. So `vlan 1 4u` is not valid anymore. Replace it with `vlan 1 4`. +- Commands + - port zero/`0` is treated as the `CPU_PORT`. #326 + - Many commands don't accept the CPU_PORT anymore. See #334. + When the CPU_PORT is needed, the command/service will add the CPU_PORT automaticly. + Only `isolate` accept the CPU_PORT as destination port. ## [v0.1_aplha] - 2025-11-03 diff --git a/html/config.js b/html/config.js index 8af3fbaa..a5e6b14f 100644 --- a/html/config.js +++ b/html/config.js @@ -10,7 +10,7 @@ const conf_cmds = [ /^passwd\s+\S+$/, /^vlan\s+\d{1,4}\s+d$/, /^vlan\s+\d{1,4}\s+mgmt$/, - /^vlan\s+\d{1,4}(\s+[a-zA-Z]\w*)?(\s+\d{1,2}[tu]?)+$/, + /^vlan\s+\d{1,4}(\s+[a-zA-Z]\w*)?(\s+[1-9]t?)+$/, /^pvid\s+\d{1,2}\s+\d{1,4}$/, /^ingress(\s+\d{1,2}[tua])+$/, /^ingress\s+[tua]$/,