-
Notifications
You must be signed in to change notification settings - Fork 759
[202505] Fix missing FEC stats columns #4147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Thanks for fixing this Prince, LGTM! Can you please fix this error? |
Signed-off-by: Prince George <[email protected]>
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR fixes missing FEC statistics columns in the portstat -f command when using the period flag (-p). The issue was that the cnstat_diff_print method (used for periodic stats) was only displaying the first 3 FEC counter columns (FEC_CORR, FEC_UNCORR, FEC_SYMBOL_ERR), while the cnstat_print method already included all 8 columns including rate-based metrics.
Key changes:
- Added 5 missing FEC stats columns to
cnstat_diff_print: FEC_PRE_BER, FEC_POST_BER, FEC_PRE_BER_MAX, FLR(O), and FLR(P) (Accuracy) - Updated test expectations to match the complete output format
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| utilities_common/portstat.py | Added missing FEC rate statistics columns (FEC_PRE_BER, FEC_POST_BER, FEC_PRE_BER_MAX, FLR(O), FLR(P)) to both branches of the fec_stats_only conditional in cnstat_diff_print method, matching the format already present in cnstat_print |
| tests/portstat_test.py | Updated expected test output for intf_fec_counters_period to include all FEC statistics columns, and removed extra blank lines for cleaner formatting |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
What I did
Added the missing columns for "show interface counters fec-stats"
PS. This issue is NOT seen on master/202511 due to difference in code for portstat.py
How I did it
Unlike
cnstat_print,cnstat_diff_printwas missing all the fec-stats columnsHow 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)