From 1f8f6ab59acc73bcda500e03d87310b59810c343 Mon Sep 17 00:00:00 2001 From: Sudharsan Dhamal Gopalarathnam Date: Tue, 23 Nov 2021 15:37:03 -0800 Subject: [PATCH] [config reload] Update command reference (#1941) Updating command reference reflecting the latest config reload behavior #### What I did Update command reference for the config reload behavior. These changes were introduced by https://github.com/Azure/sonic-utilities/pull/1664 --- doc/Command-Reference.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/doc/Command-Reference.md b/doc/Command-Reference.md index 06e9dd75ddef..94db3a048c25 100644 --- a/doc/Command-Reference.md +++ b/doc/Command-Reference.md @@ -4855,9 +4855,11 @@ When user specifies the optional argument "-n" or "--no-service-restart", this c running on the device. One use case for this option is during boot time when config-setup service loads existing old configuration and there is no services running on the device. +When user specifies the optional argument "-f" or "--force", this command ignores the system sanity checks. By default a list of sanity checks are performed and if one of the checks fail, the command will not execute. The sanity checks include ensuring the system status is not starting, all the essential services are up and swss is in ready state. + - Usage: ``` - config reload [-y|--yes] [-l|--load-sysinfo] [] [-n|--no-service-restart] + config reload [-y|--yes] [-l|--load-sysinfo] [] [-n|--no-service-restart] [-f|--force] ``` - Example: @@ -4879,6 +4881,19 @@ running on the device. Running command: systemctl restart interfaces-config Timeout, server 10.11.162.42 not responding. ``` + When some sanity checks fail below error messages can be seen + ``` + admin@sonic:~$ sudo config reload -y + System is not up. Retry later or use -f to avoid system checks + ``` + ``` + admin@sonic:~$ sudo config reload -y + Relevant services are not up. Retry later or use -f to avoid system checks + ``` + ``` + admin@sonic:~$ sudo config reload -y + SwSS container is not ready. Retry later or use -f to avoid system checks + ``` ### Loading Management Configuration