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

[action] [PR:3488] Enable show interfacess counters on chassis supervisor (#3488) #3529

Merged
merged 1 commit into from
Sep 6, 2024

Commits on Sep 6, 2024

  1. Enable show interfacess counters on chassis supervisor (sonic-net#3488)

    What I did
    I modify the portstat script and the implementation of Class Porstat to enable the Chassis Supervisor to collect port counters from linecards. By doing so, "show interfaces counters" on the Chassis Supervisor can now collect port counters from linecards and display them on the CLI.
    
    How I did it
    I made the Class Portstat aware of chassis environment and added logic to collect port counters from linecards through "GET_LINECARD_COUNTER|pull" signal in CHASSIS_STATE_DB. And I also added an agent on every linecard to collect port counters and send them to CHASSIS_STATE_DB on the Chassis Supervisor.
    
    Note: the agent is not part of this PR. The current agent used in my test is only for internal use in MSFT.
    
    How to verify it
    Run it on a SONiC Chassis Supervisor and make sure the Linecards are equipped with agents to publish port counters to CHASSIS_STATE_DB.
    BYGX-wcr authored and mssonicbld committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    eb8d04b View commit details
    Browse the repository at this point in the history