Skip to content

Add SaveOnSet#108

Merged
sneelam20 merged 29 commits intosonic-net:masterfrom
rlucus:master
May 21, 2024
Merged

Add SaveOnSet#108
sneelam20 merged 29 commits intosonic-net:masterfrom
rlucus:master

Conversation

@rlucus
Copy link
Copy Markdown
Contributor

@rlucus rlucus commented May 9, 2023

Why I did it

Enable save-on-set for gnmi. Creates a configDB backup to disk after eat gnmi.Set if enabled.

How I did it

Add a function pointer that allows the entire feature to be enabled by command line argument. If enabled, a call to sonic-services-client sends a message on the DBUS to the sonic host service modules.

HLD here
sonic-net/SONiC#1239

sonic-buildimage PR here
sonic-net/sonic-buildimage#18481

@rlucus
Copy link
Copy Markdown
Contributor Author

rlucus commented May 15, 2024

Sorry wrong link to HLD. it is here sonic-net/SONiC#1297

common_utils.IncCounter(common_utils.GNMI_SET_FAIL)
}

s.SaveStartupConfig()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No locks in both Set() and SaveOnSetEnabled(). Is it safe to allow parallel db writes and config saves?

@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla bot commented May 17, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

@sneelam20 sneelam20 merged commit 585f441 into sonic-net:master May 21, 2024
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.

6 participants