-
Notifications
You must be signed in to change notification settings - Fork 54
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
gNOI System APIs (Reboot, RebootStatus, CancelReboot) changes #308
base: master
Are you sure you want to change the base?
Conversation
/azpw run |
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
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.
No major objections. Just some nits.
/azp run |
Pull request contains merge conflicts. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@ndas7 could you please merge latest repo changes for easy review? Thank you! |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
1 similar comment
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Commenter does not have sufficient privileges for PR 308 in repo sonic-net/sonic-gnmi |
/azp run |
Commenter does not have sufficient privileges for PR 308 in repo sonic-net/sonic-gnmi |
/azpw run |
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
) | ||
|
||
// Converts a SWSS error code string into a gRPC code. | ||
func SwssToErrorCode(statusStr string) codes.Code { |
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.
Please resolve conflict |
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.
with minor comment
return &resp, nil | ||
} | ||
|
||
func HaltSystem() error { |
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.
@ndas7 As discussed, could you please integrate this commit as well?
Remove old way of HALT Reboot method by vvolam · Pull Request #1 · ndas7/sonic-gnmi?. If you merge the PR, the commit will be integrated to your PR
Why I did it
Add support for gNOI System APIs for Reboot, RebootStatus, CancelReboot to forward requests to the Reboot Backend through Redis DB Notification channel.
How I did it
Created separate files for the System APIs under gnoi_system.go
How to verify it
Unit tests and build infrastructure checks
Which release branch to backport (provide reason below if selected)
Description for the changelog
Add support for gNOI System APIs for Reboot, RebootStatus, CancelReboot
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)