mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
stp: accept the documented port keyword again
The rename of the entity index turned `stp port <n>` into `stp ent <n>` in the parser only. doc/stp.md, the web UI and every saved startup config still spell it `stp port`, so per-port settings were rejected on the console and silently dropped when the startup config was replayed at boot. Restore the keyword; `stp lag <n>` is unchanged.
This commit is contained in:
1 parent
62c6c65f1c
commit
f3e1a393b5
1 file changed
+2
-2
+2
-2
@@ -996,7 +996,7 @@ void stp_parse(void) __banked __reentrant
|
|||||||
if (cmd_words_len < 3)
|
if (cmd_words_len < 3)
|
||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
if (cmd_compare(1, "ent") || cmd_compare(1, "lag")) {
|
if (cmd_compare(1, "port") || cmd_compare(1, "lag")) {
|
||||||
stp_lag_map();
|
stp_lag_map();
|
||||||
if (cmd_words_len < 4)
|
if (cmd_words_len < 4)
|
||||||
goto err;
|
goto err;
|
||||||
@@ -1134,5 +1134,5 @@ void stp_parse(void) __banked __reentrant
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
err:
|
err:
|
||||||
print_string("Error: stp on|off|status | prio <0-15> | hello <1-10> | maxage <6-40> | fwd <4-30> | txhold <1-10> | version rstp|stp | ent <1-9>|lag <1-4> on|off|edge|cost|prio|guard|filter ...\n");
|
print_string("Error: stp on|off|status | prio <0-15> | hello <1-10> | maxage <6-40> | fwd <4-30> | txhold <1-10> | version rstp|stp | port <1-9>|lag <1-4> on|off|edge|cost|prio|guard|filter ...\n");
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user