[consutil] Remove actual baud and refactor lib for future change #1130
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.
- What I did
consutil show
result tableERR_CFG
for indicating configuration issue- How I did it
ERR_CFG
as the bad/missing configuration caused return code- How to verify it
Build a deb and test it on a physical DUT with following CONSOLE_PORT configuration:
- Previous command output (if the output of a command-line utility has changed)
admin@sonic:~$ sudo consutil show Line Actual/Configured Baud PID Start Time Device ------ ------------------------ ----- ------------ -------- 0 9600/- - 1 9600/9600 switch1 2 9600/- - 3 9600/- - 4 9600/- - 5 9600/- - 6 9600/- - 7 9600/- - 8 9600/- - 9 9600/- - 10 9600/- - 11 9600/- - 12 9600/- - 13 9600/- - 14 9600/- - 15 9600/- - 16 9600/- - 17 9600/- - 18 9600/- - 19 9600/- - 20 9600/- - 21 9600/- - 22 9600/- - 23 9600/- - 24 9600/- - 25 9600/- - 26 9600/- - 27 9600/- - 28 9600/- - 29 9600/- - 30 9600/- - 31 9600/- - 32 9600/- - 33 9600/- - 34 9600/- - 35 9600/- - 36 9600/- - 37 9600/- - 38 9600/- - 39 9600/- - 40 9600/- - 41 9600/- - 42 9600/- - 43 9600/- - 44 9600/- - 45 9600/- - 46 9600/- - 47 9600/- -
- New command output (if the output of a command-line utility has changed)
admin@sonic:~$ sudo consutil show Line Baud PID Start Time Device ------ ------ ----- ------------ -------- 0 - - 1 9600 switch1 2 - - 3 - - 4 - - 5 - - 6 - - 7 - - 8 - - 9 - - 10 - - 11 - - 12 - - 13 - - 14 - - 15 - - 16 - - 17 - - 18 - - 19 - - 20 - - 21 - - 22 - - 23 - - 24 - - 25 - - 26 - - 27 - - 28 - - 29 - - 30 - - 31 - - 32 - - 33 - - 34 - - 35 - - 36 - - 37 - - 38 - - 39 - - 40 - - 41 - - 42 - - 43 - - 44 - - 45 - - 46 - - 47 - -