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

[load_minigraph] Reuse updategraph service to load minigraph in cli #219

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

taoyl-ms
Copy link
Contributor

- What I did
As new updategraph service in sonic-net/sonic-buildimage#1452 support reloading minigraph, reuse the logic in CLI to avoid explicitly restart depending service in CLI code.

@taoyl-ms taoyl-ms changed the title Reuse updategraph service to load minigraph in cli [load_minigraph] Reuse updategraph service to load minigraph in cli Mar 10, 2018
_restart_services()
print "Please note setting loaded from minigraph will be lost after system reboot. To preserve setting, run `config save`."
run_command('sed -i "/enabled=/d" /etc/sonic/updategraph.conf', display_cmd=True)
run_command('echo enabled=reload_only /etc/sonic/updategraph.conf', display_cmd=True)
Copy link
Contributor

@jleveque jleveque Mar 16, 2018

Choose a reason for hiding this comment

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

I believe you're missing a redirect operator here (either echo enabled=reload_only > /etc/sonic/updategraph.conf or echo enabled=reload_only >> /etc/sonic/updategraph.conf). I believe you intended to append.

stepanblyschak pushed a commit to stepanblyschak/sonic-utilities that referenced this pull request Apr 18, 2022
60f5237 (HEAD, origin/202012) [multi-asic]: Udpate to use SonicDBConfig from swsscommon (sonic-net#219)
5c0d941 [201911][RFC1213]: Initialize lag oid map in reinit_data (sonic-net#234)

Signed-off-by: Suvarna Meenakshi <sumeenak@microsoft.com>
mihirpat1 pushed a commit to mihirpat1/sonic-utilities that referenced this pull request Sep 15, 2023
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