[route_check]Add an option for route_check to control whether log is writen to syslog #1215
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.
Fix sonic-net/sonic-buildimage#5804
- What I did
By default, route_check.py will report an ERROR in syslog if route mismatch is detected, which is out of the control of monit config file and cause LogAnalyzer to report test error. This commit add an option (-s) to control this behavior. And log is not writen to syslog in default.
- How I did it
Add an option (-s) for
route_checker.py
.- How to verify it
The update is verified on Arista-7260.
route_check.py
, and error msg is only printed on stdout. Nothing is writen to syslogroute_check.py -s
. and error msg is writen to both stdout and syslog- Previous command output (if the output of a command-line utility has changed)
Output is not changed.
- New command output (if the output of a command-line utility has changed)
Output is not changed.