Skip to content

Commit

Permalink
Address community review comments
Browse files Browse the repository at this point in the history
Eliminate oldest events if the number of events exceed the threshold

Signed-off-by: Stephen Sun <stephens@nvidia.com>
  • Loading branch information
stephenxs committed Jan 16, 2024
1 parent b249390 commit bcc233a
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/sonic-yang-models/doc/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,8 @@ ASIC/SDK health event related configuration is defined in **SUPPRESS_ASIC_SDK_HE
"notice": {
"categories": [
"asic_hw"
]
],
"max_events": "1000"
},
"warning": {
"categories": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@
"desc": "Load suppress ASIC/SDK health event list for notice.",
"eStrKey": "InvalidValue"
},
"SUPPRESS_ASIC_SDK_HEALTH_EVENT_LIST_INVALID_CATEGORY": {
"desc": "Load MUX_TUNNEL missing name.",
"SUPPRESS_ASIC_SDK_HEALTH_EVENT_LIST_NEGATIVE_MAX_EVENTS": {
"desc": "Load suppress ASIC/SDK health event list missing name.",
"eStrKey": "InvalidValue"
},
"SUPPRESS_ASIC_SDK_HEALTH_EVENT_LIST_INVALID_MAX_EVENTS": {
"desc": "Load suppress ASIC/SDK health event list missing name.",
"eStrKey": "InvalidValue"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"SUPPRESS_ASIC_SDK_HEALTH_EVENT_LIST": [
{
"severity": "notice",
"categories": ["software","firmware","cpu_hw","asic_hw"]
"categories": ["software","firmware","cpu_hw","asic_hw"],
"max_events": "100"
}
]
}
Expand Down Expand Up @@ -62,5 +63,31 @@
]
}
}
},

"SUPPRESS_ASIC_SDK_HEALTH_EVENT_LIST_NEGATIVE_MAX_EVENTS": {
"sonic-suppress-asic-sdk-health-event:sonic-suppress-asic-sdk-health-event": {
"sonic-suppress-asic-sdk-health-event:SUPPRESS_ASIC_SDK_HEALTH_EVENT": {
"SUPPRESS_ASIC_SDK_HEALTH_EVENT_LIST": [
{
"severity": "notice",
"max_events": "-1"
}
]
}
}
},

"SUPPRESS_ASIC_SDK_HEALTH_EVENT_LIST_INVALID_MAX_EVENTS": {
"sonic-suppress-asic-sdk-health-event:sonic-suppress-asic-sdk-health-event": {
"sonic-suppress-asic-sdk-health-event:SUPPRESS_ASIC_SDK_HEALTH_EVENT": {
"SUPPRESS_ASIC_SDK_HEALTH_EVENT_LIST": [
{
"severity": "notice",
"max_events": "NaN"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ module sonic-suppress-asic-sdk-health-event {
description "Severity of the ASIC/SDK health event to suppress";
}

leaf max_events {
type uint32;
}

leaf-list categories {
type enumeration {
enum software;
Expand Down

0 comments on commit bcc233a

Please sign in to comment.