Skip to content

Commit

Permalink
updated static_event_map signature
Browse files Browse the repository at this point in the history
Signed-off-by: Srinadh Penugonda <Srinadh_Penugondaa@dell.com>
  • Loading branch information
spenugondaa committed Mar 17, 2021
1 parent c1b4240 commit d326ed2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/event-alarm-framework/event-alarm-framework.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,9 @@ The static map is located at eventd/lib/src/eventstaticmap.h

```
std::unordered_map<std::string, EventInfo_t> static_event_map = {
{"PORT_MTU_UPDATE", {EventSeverity::INFORMATIONAL, "Port MTU is updated. "}},
{"TEMPERATURE_EXCEEDED", {EventSeverity::CRITICAL, "Temperature threshold is 75 degrees. "}},
{"PORT_LEARNING_MODE_UPDATE", {EventSeverity::INFORMATIONAL, "Learning mode updated. "}}
{"PORT_MTU_UPDATE", {EventSeverity::INFORMATIONAL, true, "Port MTU is updated. "}},
{"TEMPERATURE_EXCEEDED", {EventSeverity::CRITICAL, true, "Temperature threshold is 75 degrees. "}},
{"PORT_LEARNING_MODE_UPDATE", {EventSeverity::INFORMATIONAL, true, "Learning mode updated. "}}
}
```

Expand Down Expand Up @@ -440,7 +440,7 @@ User can select any of the custom severity profiles under /etc/sonic/severitypro

The framework will sanity check the user selected severity profile and merges it with static_event_map.

The selected severity profile will be "active" after a reboot.
The selected severity profile will be "active" after a reboot and merged with the static_event_map.

To "remember" the selected custom profile across reboots, an internal symlink points to the selected custom
profile.
Expand Down

0 comments on commit d326ed2

Please sign in to comment.