CLI for Configuring PFC Historical Statistics#3779
CLI for Configuring PFC Historical Statistics#3779vmittal-msft merged 3 commits intosonic-net:masterfrom
Conversation
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
utilities_common/pfc_stat_history.py
Outdated
| PFC_STAT_HISTORY_DEFAULT_STATUS = "disable" | ||
|
|
||
| # | ||
| # 'pfc-stat-history' group ('config pfc-stat-history ...') |
There was a problem hiding this comment.
can you move new config command to config directory? I don't think utilities_common is a place to add new config command
There was a problem hiding this comment.
Thank you for reviewing this as well.
The implementation has since changed to use the PFCWD orchagent so I have also changed the CLI to be configured through the PFCWD config and show commands instead.
6855462 to
10f6243
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
10f6243 to
a99025f
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
84eb7e1 to
43d2594
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Includes modifications made to pass pre-commit (fixing import *).
43d2594 to
b10f16b
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@peterbailey-arista I think this PR has introduced a test regression that is preventing submodule update PR from passing the PR tests. I checked the failure logs and it seems like this PR from Arista is causing OA to not process the stats Example of the failed run - https://elastictest.org/scheduler/testplan/68c920ad288a03159090b019?testcase=generic_config_updater%2Ftest_pfcwd_status.py%7C%7C%7C2&type=console Syslog errors from the failed run: There is another issue that I suspect here - None/ Null in the config that leads to config check failure: |
|
@vaibhavhd I see that sonic-net/sonic-buildimage#23491 which contains submodule bump up with the orchagent change to process the pfc stat history param is also unmerged. Thank you for bringing this to my attention, the fix for the syslog errors is for the swss change to merge first. Is that possible? For the generic_config_updater test I see sonic-net/sonic-mgmt#20667 has already been made to handle the problem. So the fix should be to include this commit (70648ef) in the submodule bump up as well |
* Add pfc stat history options to PFCWD CLI * Unit tests for PFCWD pfc history cli Includes modifications made to pass pre-commit (fixing import *). * Add pfc-stat-history command and flag for PFCWD to docs
What I did
Added support for configuring pfc statistical history through following commands:
These changes were made for the PFC Historical Statistics feature: sonic-net/SONiC#1904
How I did it
How to verify it
config pfcwd start <ports> <detection-time> --pfc-stat-historyon a switch, verify the configurations withshow pfcwd configconfig pfcwd pfc_stat_history enable|disable <ports>on a switch, verify the configurations withshow pfcwd configNew command output (if the output of a command-line utility has changed)
Example output of
show pfcwd config: