Skip to content

cmd: report three more mistakes as errors - #1013

Merged
feelfree69 merged 1 commit into
RTLPlayground:mainfrom
DrDoof:fix/cmd-error-status
Nov 26, 2026
Merged

feelfree69 merged 1 commit into
RTLPlayground:mainfrom
DrDoof:fix/cmd-error-status

Conversation

@DrDoof

@DrDoof DrDoof commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

storm 1 bcast 0 pps, session 0 and port 1 lldp blok print an error text but don't count as errors. From the web UI they get 200 and a green toast, go into the command log and from there into the saved configuration, where they print the same message at every start.

They use cmd_error() now, like the other commands.

In rtlsim on an RTL8373 board all three get 200 on main and show up in /cmd_log. With this change they get 400 and stay out of the log; storm 1 bcast 100 pps, session 600 and port 1 lldp block get 200 as before. Not tried on real hardware.

A storm limit of zero or out of range, a session timeout of zero and an
unknown word after "port N lldp" printed a message but did not count as
errors. Sent from the web UI they got 200 and a green toast, went into
the command log and from there into the saved configuration, where they
print the same message at every start.

Use cmd_error() for them, as the other commands do.
@DrDoof DrDoof added the bugfix label Nov 26, 2026
@feelfree69
feelfree69 merged commit 464c7d4 into RTLPlayground:main Nov 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants