From 5937314a8a30bf2eeb43cdafa709a02c16f21199 Mon Sep 17 00:00:00 2001 From: peter_yu Date: Fri, 14 Apr 2023 08:23:35 +0000 Subject: [PATCH] [ZTP] 'config reload' use -f to avoid system checks 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 --- src/usr/lib/ztp/plugins/configdb-json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usr/lib/ztp/plugins/configdb-json b/src/usr/lib/ztp/plugins/configdb-json index b465833..a527fbb 100755 --- a/src/usr/lib/ztp/plugins/configdb-json +++ b/src/usr/lib/ztp/plugins/configdb-json @@ -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')