Skip to content

Commit

Permalink
[ZTP] 'config reload' use -f to avoid system checks (#52)
Browse files Browse the repository at this point in the history
sometimes configdb-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 authored Oct 13, 2023
1 parent 04cd8e8 commit 739470d
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 739470d

Please sign in to comment.