Skip to content
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 Factory Reset - service for factory resetting a Target #17

Merged
merged 14 commits into from
Mar 2, 2020

Conversation

samribeiro
Copy link
Member

No description provided.

@samribeiro samribeiro requested a review from robshakir April 2, 2019 15:38
@ejbrever
Copy link
Contributor

ejbrever commented Apr 2, 2019

I think the Reboot RPC already supports this (although in a bit more rudimentary way):
https://github.com/openconfig/gnoi/blob/master/system/system.proto#L127

Would it make sense to enhance that RPC instead?

@samribeiro
Copy link
Member Author

@ejbrever I agree with coalescing, however I am reluctant about using the System service at all. In this use case for instance, it is inconvenient to ask that the Reboot RPC in System service be implemented, but no other RPC. That is at the moment our only requirement. It is hard to state requirements when a Service is too overarching, I believe we should aim for slimmer micro-services. Given this, how about extruding the Reboot RPCs from System and augmenting the Reset service?

@samribeiro samribeiro self-assigned this Apr 30, 2019
@robshakir
Copy link
Contributor

@ejbrever -- did you have concerns with this service? I tend to agree with Sam that having this be an explicit RPC seems to make sense.

@ejbrever
Copy link
Contributor

I'm generally good with this, but two thoughts:

  1. Should we consider messaging in the Reboot RPC? I guess I am wondering how best to discuss with vendors when they ask why there are two ways to do something. Perhaps in the Reboot RPC we could describe that the preferred RPC for factory reset is over here and the one in system is deprecated?

  2. "Reset" has a lot of connotations for networking gear (reset counters, reset/reboot are often used interchangeably). A previous comment mentioned the intention is to have an service that is very small so vendors can just implement the services entirely. If that is the case, do we want to scope what is in "Reset"? Perhaps this should just be called "FactoryReset" if we really want to put a tight scope around this? I could imagine tweaking the names then so instead of the current Reset.Factory(), this becomes FactoryReset.Initiate().

@samribeiro
Copy link
Member Author

Thank you @ejbrever, I agree with you:

  • I have updated the naming as you suggest in 2).
  • I have updated the System messaging as you suggest in 1).

@samribeiro samribeiro changed the title gNOI Reset - service for factory resetting a Target gNOI Factory Reset - service for factory resetting a Target Aug 29, 2019
@ejbrever
Copy link
Contributor

LGTM, thanks for making the changes!

factory_reset/reset.proto Outdated Show resolved Hide resolved
factory_reset/reset.proto Outdated Show resolved Hide resolved
factory_reset/reset.proto Outdated Show resolved Hide resolved
system/system.proto Outdated Show resolved Hide resolved
system/system.proto Outdated Show resolved Hide resolved
factory_reset/reset.proto Outdated Show resolved Hide resolved
Copy link
Member Author

@samribeiro samribeiro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

factory_reset/reset.proto Outdated Show resolved Hide resolved
Copy link
Contributor

@aashaikh aashaikh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM -- thanks for the updates and discussion.

factory_reset/reset.proto Show resolved Hide resolved
@samribeiro samribeiro merged commit e586e41 into master Mar 2, 2020
@samribeiro samribeiro deleted the gnoi_reset branch March 2, 2020 19:01
Raj998 pushed a commit to Raj998/gnoi that referenced this pull request Jun 6, 2022
Raj998 added a commit to Raj998/gnoi that referenced this pull request Jun 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants