-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
HLD for Save on Set #1297
HLD for Save on Set #1297
Conversation
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.
LGTM
community review recording https://zoom.us/rec/share/fhMIOkkDYx3INSShyKdXw9dXl8HqhBqQLxzG1mEUyvJrxdYbdGhofRS9Xs4MCh2g.aBeFosVoWBv3VBXi |
doc/mgmt/gnmi/save_on_set.md
Outdated
#### Unit Test cases | ||
|
||
- No behavior change if the feature is not enabled. | ||
- A gNMI.Set() call should generate a signal to save ConfigDB. |
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.
Looks like we invoke "write memory" click call for every gNMI set operation when the save-on-set is enabled, not sure signalling is the word usage, please fix it.
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.
Reworded
doc/mgmt/gnmi/save_on_set.md
Outdated
##### Telemetry Executable | ||
A new command-line parameter will be added to control the behavior of the save-on-set functionality. By default, i.e. when the option is not specified, the gNMI server will behave as it did before this change - the configuration will not be saved to a file without explicit action from the administrator for example by execution of a command via ssh connection. | ||
|
||
The new parameter will be: --with-save-on-set and when present it will configure a function pointer variable gnmi.SaveOnSet to point to a function that actually performs the save operation. |
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.
Are we getting this feature enable/disable from config_db field?
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.
Added clarification that the startup script will read from the DB to pass the value along to the command line argument on startup.
9e06354
code PR is missed and can you please add @rlucus ? |
code PR is not ready, move to backlog for future release |
* add support for save-on-set to gnmi sonic-net/SONiC#1297 * leave default if not set * move to telemetry.sh
Could you add the code PRs in a markdown table in this HLD PR's description? |
Pull Requests |
Approving/merging this HLD as the code PRs are already submitted. |
Pull Requests