Repository navigation
cmd: report three more mistakes as errors - #1013
Merged
Merged
Conversation
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.
feelfree69
approved these changes
Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
storm 1 bcast 0 pps,session 0andport 1 lldp blokprint 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 600andport 1 lldp blockget 200 as before. Not tried on real hardware.