Skip to content

Commit

Permalink
[ZTP] 'config reload' use -f to avoid system checks
Browse files Browse the repository at this point in the history
sometimes config_db.json didn't take effect, and it displayed:
--
Aug 13 08:51:12.048103 sonic INFO sonic-ztp[30764]: configdb-json: Reloading config_db.json to Config DB.
Aug 13 08:51:12.586370 sonic INFO sonic-ztp[35241]: SwSS container is not ready. Retry later or use -f to avoid system checks
  • Loading branch information
peter-yu committed Jun 27, 2023
1 parent 8768991 commit 5937314
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usr/lib/ztp/plugins/configdb-json
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ class ConfigDBJson:
self.__stop_dhcp()
logger.info('configdb-json: Reloading config_db.json to Config DB.')
updateActivity('configdb-json: Reloading config_db.json to Config DB')
cmd += 'reload'
cmd += 'reload -f'
else:
logger.info('configdb-json: Applying config_db.json to Config DB.')
updateActivity('configdb-json: Applying config_db.json to Config DB')
Expand Down

0 comments on commit 5937314

Please sign in to comment.