Skip to content

Issue #22362: Call ConfigReload on full config gnmi update#377

Closed
anders-nexthop wants to merge 1 commit into
sonic-net:masterfrom
anders-nexthop:gnmi-config-reload
Closed

Issue #22362: Call ConfigReload on full config gnmi update#377
anders-nexthop wants to merge 1 commit into
sonic-net:masterfrom
anders-nexthop:gnmi-config-reload

Conversation

@anders-nexthop

@anders-nexthop anders-nexthop commented Apr 17, 2025

Copy link
Copy Markdown
Contributor

Why I did it

The full config update handler already saves the config to a file and does yang validation on it. The previous implementation relied on the Reboot command to trigger a ConfigReload, but that command has been implemented on the system level and no longer performs a reload, leaving this operation non-functional.

How I did it

Call ConfigReload directly from the handler and bypass the Reboot, restoring this operation.

How to verify it

Unit tests pass successfully.

TBD:

  • working on updating sonic-mgmt test

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111

Description for the changelog

Call ConfigReload on full config gnmi update

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

       _____     ____
     /      \  |  o | 
    |        |/ ___\| 
    |_________/     
    |_|_| |_|_|

@mssonicbld

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

The full config update handler already saves the config to a file and
does yang validation on it. The previous implementation relied on the
Reboot command to trigger a ConfigReload, but that command has been
implemented on the system level and no longer performs a reload, leaving
this operation non-functional. However, we can call ConfigReload
directly from the handler and bypass the Reboot, restoring this
operation.

Modify unit tests to expect test D-Bus calls.
@mssonicbld

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@hdwhdw

hdwhdw commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Closing as stale — no activity in over 6 months. Please reopen if you'd still like to pursue this. Thanks for the contribution!

@hdwhdw hdwhdw closed this Jul 7, 2026
@anders-nexthop

Copy link
Copy Markdown
Contributor Author

Closing as stale — no activity in over 6 months. Please reopen if you'd still like to pursue this. Thanks for the contribution!

@hdwhdw A more complete implementation of this was proposed at #651, please consider that one for review (it's been open since May with no reviews yet). Thanks!

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.

3 participants