Add CLI support for PRBS#4485
Open
marvellparthiv wants to merge 3 commits intosonic-net:masterfrom
Open
Conversation
Add config, show, and clear CLI commands for PRBS (Pseudo-Random Bit Sequence) link diagnostics. Includes enabling and disabling prbs config, 'show interfaces prbs <>' for per-lane BER and lock status results with JSON support, 'clear prbs results' for STATE_DB cleanup, shared utility functions in prbs_util.py, and full Command-Reference documentation with usage examples. Signed-off-by: Parthiv Shah <parthiv@marvell.com> Signed-off-by: Pavan Naregundi <pnaregundi@marvell.com>
Relocate PRBS enable/disable commands from 'config interface prbs' to 'diag interface prbs' to reflect their transient, diagnostic nature. - Move config/interface_prbs.py to diag/main.py as standalone CLI group - Write PRBS config to DIAG_PORT_TABLE in APPL_DB via ProducerStateTable instead of CONFIG_DB PORT table (transient, no config save/reboot) - Update Command-Reference.md with new diag CLI examples Signed-off-by: Pavan Naregundi <pnaregundi@marvell.com> Signed-off-by: Parthiv Shah <parthiv@marvell.com>
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Parthiv Shah <parthiv@marvell.com>
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
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.
What I did
Added PRBS (Pseudo-Random Bit Sequence) CLI support
How I did it
Created diag/ as a new top-level CLI group (diag/init.py, diag/main.py) registered in setup.py
Added show interfaces prbs status in show/interfaces/prbs.py with optional -i and --json flags; reads from STATE_DB
Added sonic-clear prbs results in clear/main.py; guards against clearing while a test is still running
How to verify it
Previous command output (if the output of a command-line utility has changed)
New command output (if the output of a command-line utility has changed)