diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..168bd34f --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,25 @@ +# Change Log + +## [0.x] - 2026-xx-XX + +## Added + +## Changed + +## Fixed + +## Breaking changes + +- Config + - 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 + +First release. \ No newline at end of file diff --git a/cmd_parser.c b/cmd_parser.c index 5f0014cc..bd2fc544 100644 --- a/cmd_parser.c +++ b/cmd_parser.c @@ -549,7 +549,7 @@ void parse_vlan(void) } return; err: - print_string("Error: vlan (|show) [port][t/u]...\n"); + print_string("Error: vlan (|show) [port][t]...\n"); } diff --git a/doc/vlan.md b/doc/vlan.md index a3d50c74..907f94be 100644 --- a/doc/vlan.md +++ b/doc/vlan.md @@ -69,9 +69,9 @@ void vlan_delete(uint16_t vlan) __banked; # VLAN configuration on the Serial Console For testing the following commands are provided on the serial console: ``` -vlan p[t/u]... - create or set vlan with given ID and the list of ports as members, a t - behind a port defines the port as a tagged member, the u is optional +vlan p[t]... + create or set vlan with given ID and the list of ports as members, a `t` + behind a port defines the port as a tagged member. vlan d deletes the VLAN diff --git a/html/config.js b/html/config.js index cfa51952..92009ea6 100644 --- a/html/config.js +++ b/html/config.js @@ -11,7 +11,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]$/,