Skip to content

Commit 1f8f6ab

Browse files
authored
[config reload] Update command reference (sonic-net#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 sonic-net/sonic-utilities#1664
1 parent a0bff26 commit 1f8f6ab

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

doc/Command-Reference.md

+16-1
Original file line numberDiff line numberDiff line change
@@ -4855,9 +4855,11 @@ When user specifies the optional argument "-n" or "--no-service-restart", this c
48554855
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
48564856
running on the device.
48574857
4858+
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.
4859+
48584860
- Usage:
48594861
```
4860-
config reload [-y|--yes] [-l|--load-sysinfo] [<filename>] [-n|--no-service-restart]
4862+
config reload [-y|--yes] [-l|--load-sysinfo] [<filename>] [-n|--no-service-restart] [-f|--force]
48614863
```
48624864
48634865
- Example:
@@ -4879,6 +4881,19 @@ running on the device.
48794881
Running command: systemctl restart interfaces-config
48804882
Timeout, server 10.11.162.42 not responding.
48814883
```
4884+
When some sanity checks fail below error messages can be seen
4885+
```
4886+
admin@sonic:~$ sudo config reload -y
4887+
System is not up. Retry later or use -f to avoid system checks
4888+
```
4889+
```
4890+
admin@sonic:~$ sudo config reload -y
4891+
Relevant services are not up. Retry later or use -f to avoid system checks
4892+
```
4893+
```
4894+
admin@sonic:~$ sudo config reload -y
4895+
SwSS container is not ready. Retry later or use -f to avoid system checks
4896+
```
48824897
48834898
48844899
### Loading Management Configuration

0 commit comments

Comments
 (0)