Skip to content

added code for show asic sdk health event#193

Closed
meghna-mishra wants to merge 4 commits intoAzure:masterfrom
meghna-mishra:addAsicSdkHealthEventCode
Closed

added code for show asic sdk health event#193
meghna-mishra wants to merge 4 commits intoAzure:masterfrom
meghna-mishra:addAsicSdkHealthEventCode

Conversation

@meghna-mishra
Copy link
Copy Markdown

Why I did it

Added gNMI getter for show asic-sdk-health-event so client can fetch data for suppress configuration for ASIC/SDK health events and received ASIC/SDK health events via gNMI in JSON format.

How I did it

common.CheckFeatureSupported — Generic helper that checks if a feature is supported by querying a given DB/table/key and verifying a field is "true".
getAsicSdkHealthEventSuppressConfig — Handles "show asic-sdk-health-event suppress-configuration" by reading SUPPRESS_ASIC_SDK_HEALTH_EVENT from CONFIG_DB and returning severity entries with suppressed categories and max_events.
getAsicSdkHealthEventReceived — Handles "show asic-sdk-health-event received" by reading ASIC_SDK_HEALTH_EVENT_TABLE from STATE_DB and returning event entries with date, severity, category, and description.

How to verify it

Pending

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

image

@meghna-mishra
Copy link
Copy Markdown
Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@meghna-mishra
Copy link
Copy Markdown
Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

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.

1 participant