[consutil] Display remote device name in show command #1120
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
Display remote device name in
consutil show
result table- How I did it
Read remote device name from CONFIG_DB and append it to
consutil show
result table.-
will be displayed if there are no configured remote device name.- 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 ------ ------------------------ ----- ------------ 0 9600/- 1 9600/9600 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 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/- -