Skip to content

Commit

Permalink
load_minigraph: restart hostcfgd (sonic-net#511)
Browse files Browse the repository at this point in the history
* In sync with our latest change, where we default failthrough to be False.
Reference: Pull request sonic-net#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.
  • Loading branch information
renukamanavalan authored Apr 17, 2019
1 parent 71a1e25 commit d8ae337
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ def _stop_services():
'pmon',
'bgp',
'teamd',
'hostcfgd',
]
for service in services:
try:
Expand All @@ -315,6 +316,7 @@ def _restart_services():
'lldp',
'snmp',
'dhcp_relay',
'hostcfgd',
]
for service in services:
try:
Expand Down

0 comments on commit d8ae337

Please sign in to comment.