-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add synchronous switch controlled by CONFIG_DB #652
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,12 @@ fi | |
# Use temporary view between init and apply | ||
CMD_ARGS+=" -u" | ||
|
||
# Set synchronous mode if it is enabled in CONFIG_DB | ||
SYNC_MODE=$(sonic-cfggen -d -v DEVICE_METADATA.localhost.synchronous_mode) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Also change https://github.com/Azure/SONiC/wiki/Configuration#device-metadata? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added it to the page. |
||
if [ "$SYNC_MODE" == "enable" ]; then | ||
CMD_ARGS+=" -s" | ||
fi | ||
|
||
case "$(cat /proc/cmdline)" in | ||
*SONIC_BOOT_TYPE=fastfast*) | ||
if [ -e /var/warmboot/warm-starting ]; then | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you test when the field is missing, as in old image?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it will receive an empty thing and skip changing
CMD_ARGS
. Basically, it will do async mode.