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:
Zain Budhwani 2023-12-12 11:35:46 -08:00 committed by GitHub
parent 5efb123ede
commit f82980784d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -180,9 +180,9 @@
"SONIC_EVENTS_SWSS_CHK_CRM_THRESHOLD_VALID": { "SONIC_EVENTS_SWSS_CHK_CRM_THRESHOLD_VALID": {
"sonic-events-swss:sonic-events-swss": { "sonic-events-swss:sonic-events-swss": {
"sonic-events-swss:chk_crm_threshold": { "sonic-events-swss:chk_crm_threshold": {
"percent": 0, "percent": 80,
"used_cnt": 0, "used_cnt": 6414,
"free_cnt": 0, "free_cnt": 65300,
"timestamp": "1985-04-12T23:20:50.52Z" "timestamp": "1985-04-12T23:20:50.52Z"
} }
} }

View File

@ -102,11 +102,11 @@ module sonic-events-swss {
} }
leaf used_cnt { leaf used_cnt {
type uint8; type uint32;
} }
leaf free_cnt { leaf free_cnt {
type uint64; type uint32;
} }
uses evtcmn:sonic-events-cmn; uses evtcmn:sonic-events-cmn;