From d8ae33768a82d5779399aec64ae73d1b9b381fea Mon Sep 17 00:00:00 2001 From: Renuka Manavalan <47282725+renukamanavalan@users.noreply.github.com> Date: Wed, 17 Apr 2019 09:31:33 -0700 Subject: [PATCH] load_minigraph: restart hostcfgd (#511) * In sync with our latest change, where we default failthrough to be False. Reference: Pull request #2746 * Loading minigraph, flushes DB, which is not sent as updates to hostcfgd. So stop hostcfgd before load and restart after load, to be able to act in sync with updated CONFIG-DB. --- config/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/main.py b/config/main.py index 76d3bea4a64e..6f001480978e 100755 --- a/config/main.py +++ b/config/main.py @@ -294,6 +294,7 @@ def _stop_services(): 'pmon', 'bgp', 'teamd', + 'hostcfgd', ] for service in services: try: @@ -315,6 +316,7 @@ def _restart_services(): 'lldp', 'snmp', 'dhcp_relay', + 'hostcfgd', ] for service in services: try: