Change leaf value of used_cnt of sonic-events-swss:chk_crm_threshold (#17430)
### Why I did it Current YANG model of sonic-events-swss:chk_crm_threshold has the type uint8 for leaf used_cnt which is too small of a range to hold values of used_cnt which can greatly exceed that. Updating leaf type of used_cnt and free_cnt to match defined definition. Changed to uint32 as per defined here: https://github.com/sonic-net/sonic-swss/blob/master/orchagent/crmorch.h#L99 ##### Work item tracking - Microsoft ADO **(number only)**:26091912 #### How I did it Update leaf value #### How to verify it UT and sonic-mgmt PR checker
This commit is contained in:
parent
5efb123ede
commit
f82980784d
@ -180,9 +180,9 @@
|
||||
"SONIC_EVENTS_SWSS_CHK_CRM_THRESHOLD_VALID": {
|
||||
"sonic-events-swss:sonic-events-swss": {
|
||||
"sonic-events-swss:chk_crm_threshold": {
|
||||
"percent": 0,
|
||||
"used_cnt": 0,
|
||||
"free_cnt": 0,
|
||||
"percent": 80,
|
||||
"used_cnt": 6414,
|
||||
"free_cnt": 65300,
|
||||
"timestamp": "1985-04-12T23:20:50.52Z"
|
||||
}
|
||||
}
|
||||
|
@ -102,11 +102,11 @@ module sonic-events-swss {
|
||||
}
|
||||
|
||||
leaf used_cnt {
|
||||
type uint8;
|
||||
type uint32;
|
||||
}
|
||||
|
||||
leaf free_cnt {
|
||||
type uint64;
|
||||
type uint32;
|
||||
}
|
||||
|
||||
uses evtcmn:sonic-events-cmn;
|
||||
|
Loading…
Reference in New Issue
Block a user