-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Event mgmt #48
base: master
Are you sure you want to change the base?
Event mgmt #48
Conversation
Signed-off-by: spenugondaa <srinadh.penugondaa@dell.com>
Signed-off-by: spenugondaa <srinadh.penugondaa@dell.com>
) | ||
|
||
func init() { | ||
XlateFuncBind("DbToYang_event_severity_xfmr", DbToYang_event_severity_xfmr) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not see event_severity_xfmr in any annotation file. Did we miss the corresponding YANG and annotation file?
@@ -0,0 +1,39 @@ | |||
module sonic-alarm-annot { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All sonic yangs need to be in the buildimage folder.
XlateFuncBind("rpc_acknowledge_alarms", rpc_acknowledge_alarms) | ||
XlateFuncBind("rpc_get_events", rpc_get_events) | ||
XlateFuncBind("rpc_get_alarms", rpc_get_alarms) | ||
XlateFuncBind("YangToDb_event_stats_key_xfmr", YangToDb_event_stats_key_xfmr) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need event_stats_key_xfmr if the two functions does not do anything? Where is this defined in annotation file?
…a logging enhancements to improve debuggability - (sonic-net#48) * Xfmr infra logging enhancements to improve debuggability - Log in/out messages/params from overloaded xfmr callbacks * Addressed code review comment to change log messsages around callbacks to have before and after
Is this PR obsolete, or does it need to be rebased to reflect the changes for the previous comments? Thanks. |
This is dependent on PR and follows the HLD
The changes involve yang definitions and transformer changes to support various show/exec commands. Translib code is updated with the new DB. A go library to raise events/alarms is introduced.
Dependent PRs:
sonic-buildimage
sonic-swss-common
sonic-mgmt-framework