Skip to content

Add yang model for PFC watchdog debug information#16206

Merged
qiluo-msft merged 1 commit intosonic-net:masterfrom
stephenxs:yang-model-pfcwd-enhance
Aug 23, 2023
Merged

Add yang model for PFC watchdog debug information#16206
qiluo-msft merged 1 commit intosonic-net:masterfrom
stephenxs:yang-model-pfcwd-enhance

Conversation

@stephenxs
Copy link
Collaborator

@stephenxs stephenxs commented Aug 18, 2023

Why I did it

When PFC WD is triggered there is no diagnosis information which makes it difficult to understand why PFC WD was triggered. So, we add a field additional_information to accommodate the diagnosis information.

Work item tracking
  • Microsoft ADO (number only):

How I did it

How to verify it

unit test

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

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

Signed-off-by: Stephen Sun <stephens@nvidia.com>
@stephenxs stephenxs force-pushed the yang-model-pfcwd-enhance branch from aae5ef4 to 6b9b26f Compare August 22, 2023 02:53
@stephenxs stephenxs marked this pull request as ready for review August 23, 2023 10:06
@stephenxs stephenxs requested a review from qiluo-msft as a code owner August 23, 2023 10:06
@qiluo-msft qiluo-msft merged commit 67863b8 into sonic-net:master Aug 23, 2023
@stephenxs stephenxs deleted the yang-model-pfcwd-enhance branch August 24, 2023 00:36
@stephenxs stephenxs added the Request for 202111 Branch For PRs being requested for 202111 branch label Aug 24, 2023
sonic-otn pushed a commit to sonic-otn/sonic-buildimage that referenced this pull request Sep 20, 2023
### Why I did it
When PFC WD is triggered there is no diagnosis information which makes it difficult to understand why PFC WD was triggered. So, we add a field `additional_information` to accommodate the diagnosis information.

### How to verify it
unit test
@stephenxs stephenxs added Request for 202305 Branch and removed Request for 202111 Branch For PRs being requested for 202111 branch labels Oct 12, 2023
@StormLiangMS
Copy link
Contributor

@stephenxs did you run test with 202305 image with this PR?

@stephenxs
Copy link
Collaborator Author

stephenxs commented Oct 17, 2023

@stephenxs did you run test with 202305 image with this PR?

@StormLiangMS Yes, I did. This is to parse new field in PFC watchdog event introduced in PR sonic-net/sonic-swss#2858

mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Oct 25, 2023
### Why I did it
When PFC WD is triggered there is no diagnosis information which makes it difficult to understand why PFC WD was triggered. So, we add a field `additional_information` to accommodate the diagnosis information.

### How to verify it
unit test
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202305: #17008

@zbud-msft
Copy link
Contributor

Hi @stephenxs

I am seeing issue in 202305 branch regarding this change, seems like additional_information value is not accounting for floating point values within the key value pairs.

Seems like the yang will need to be updated to support that.

"libyang[0]: Value "occupancy:0|packets:0|packets_last:0|pfc_rx_packets:0|pfc_rx_packets_last:0|pfc_duration:0|pfc_duration_last:0|timestamp:1709055546.5448|timestamp_last:1709055546.0438|real_poll_time:501045.94230652" does not satisfy the constraint "[-a-zA-Z0-9_]+:[-a-zA-Z0-9_]+(\|{1}[-a-zA-Z0-9_]+:[-a-zA-Z0-9_]+)*"

Can you please update the yang model to support this and update testcase?

@stephenxs
Copy link
Collaborator Author

stephenxs commented Mar 1, 2024

Hi @stephenxs

I am seeing issue in 202305 branch regarding this change, seems like additional_information value is not accounting for floating point values within the key value pairs.

Seems like the yang will need to be updated to support that.

"libyang[0]: Value "occupancy:0|packets:0|packets_last:0|pfc_rx_packets:0|pfc_rx_packets_last:0|pfc_duration:0|pfc_duration_last:0|timestamp:1709055546.5448|timestamp_last:1709055546.0438|real_poll_time:501045.94230652" does not satisfy the constraint "[-a-zA-Z0-9_]+:[-a-zA-Z0-9_]+(|{1}[-a-zA-Z0-9_]+:[-a-zA-Z0-9_]+)*"

Can you please update the yang model to support this and update testcase?

Hi Zain
Sure.
Draft PR to fix it #18235

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants