Skip to content
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

CLI for Configuring PFC Historical Statistics #3779

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

peterbailey-arista
Copy link

What I did

Added support for the followingcommands:

  • config pfc-stat-history status <enable|disable>
  • config pfc-stat-history start <ports|all>
  • config pfc-stat-history stop <ports|all>
  • config pfc-stat-history interval <milliseconds>
  • show pfc-stat-history config

These changes were made for the PFC Historical Statistics feature: sonic-net/SONiC#1904

How I did it

  • Added a pfc-stat-history group to config cli
  • Added a pfc-stat-history group to show cli

How to verify it

  • Run the sonic-utilities unit tests
  • Run config pfc-stat-history <command> on a switch, verify the configurations with show pfc-stat-history config

New command output (if the output of a command-line utility has changed)

Example output of show pfc-stat-history config:

Namespace: asic0
Setting              Value
-------------------  -------
POLL_INTERVAL        1000
FLEX_COUNTER_STATUS  disable

PFC Stat History enabled on:
Ethernet-BP4

Namespace: asic1
Setting              Value
-------------------  -------
POLL_INTERVAL        1000
FLEX_COUNTER_STATUS  disable

PFC Stat History not enabled on any ports

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants