Add yang model for PFC watchdog debug information (#16206)
### 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
This commit is contained in:
parent
c1c1054952
commit
67863b8d57
@ -37,6 +37,17 @@
|
||||
"SONIC_EVENTS_SWSS_PFC_STORM_VALID": {
|
||||
"desc": "VALID IF_STATE EVENT."
|
||||
},
|
||||
"SONIC_EVENTS_SWSS_PFC_STORM_VALID_WITH_ADDITIONAL_INFO": {
|
||||
"desc": "VALID IF_STATE EVENT."
|
||||
},
|
||||
"SONIC_EVENTS_SWSS_PFC_STORM_WITH_INVALID_ADDITIONAL_INFO_1": {
|
||||
"desc": "PFC_STORM_EVENT_INCORRECT_ADDITIONAL_INFO failure.",
|
||||
"eStrKey": "Pattern"
|
||||
},
|
||||
"SONIC_EVENTS_SWSS_PFC_STORM_WITH_INVALID_ADDITIONAL_INFO_2": {
|
||||
"desc": "PFC_STORM_EVENT_INCORRECT_ADDITIONAL_INFO failure.",
|
||||
"eStrKey": "Pattern"
|
||||
},
|
||||
"SONIC_EVENTS_SWSS_CHK_CRM_THRESHOLD_INCORRECT_PERCENT": {
|
||||
"desc": "CHK_CRM_THRESHOLD_EVENT_INCORRECT_PERCENT failure.",
|
||||
"eStrKey": "Range"
|
||||
|
@ -101,6 +101,42 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"SONIC_EVENTS_SWSS_PFC_STORM_VALID_WITH_ADDITIONAL_INFO": {
|
||||
"sonic-events-swss:sonic-events-swss": {
|
||||
"sonic-events-swss:pfc-storm": {
|
||||
"ifname": "Ethernet0",
|
||||
"queue_index": 0,
|
||||
"queue_id": 0,
|
||||
"port_id": 0,
|
||||
"additional_info": "info1:1|info2:2",
|
||||
"timestamp": "1985-04-12T23:20:50.52Z"
|
||||
}
|
||||
}
|
||||
},
|
||||
"SONIC_EVENTS_SWSS_PFC_STORM_WITH_INVALID_ADDITIONAL_INFO_1": {
|
||||
"sonic-events-swss:sonic-events-swss": {
|
||||
"sonic-events-swss:pfc-storm": {
|
||||
"ifname": "Ethernet0",
|
||||
"queue_index": 0,
|
||||
"queue_id": 0,
|
||||
"port_id": 0,
|
||||
"additional_info": "info1:1|info2",
|
||||
"timestamp": "1985-04-12T23:20:50.52Z"
|
||||
}
|
||||
}
|
||||
},
|
||||
"SONIC_EVENTS_SWSS_PFC_STORM_WITH_INVALID_ADDITIONAL_INFO_2": {
|
||||
"sonic-events-swss:sonic-events-swss": {
|
||||
"sonic-events-swss:pfc-storm": {
|
||||
"ifname": "Ethernet0",
|
||||
"queue_index": 0,
|
||||
"queue_id": 0,
|
||||
"port_id": 0,
|
||||
"additional_info": "info1:1|",
|
||||
"timestamp": "1985-04-12T23:20:50.52Z"
|
||||
}
|
||||
}
|
||||
},
|
||||
"SONIC_EVENTS_SWSS_CHK_CRM_THRESHOLD_INCORRECT_PERCENT": {
|
||||
"sonic-events-swss:sonic-events-swss": {
|
||||
"sonic-events-swss:chk_crm_threshold": {
|
||||
|
@ -78,6 +78,13 @@ module sonic-events-swss {
|
||||
type uint64;
|
||||
}
|
||||
|
||||
leaf additional_info {
|
||||
type string {
|
||||
pattern '[-a-zA-Z0-9_]+:[-a-zA-Z0-9_]+(\|{1}[-a-zA-Z0-9_]+:[-a-zA-Z0-9_]+)*';
|
||||
}
|
||||
description "Additional information to investigate PFC storm";
|
||||
}
|
||||
|
||||
uses evtcmn:sonic-events-cmn;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user