Skip to content

Commit

Permalink
Add synchronous switch controlled by CONFIG_DB (#652)
Browse files Browse the repository at this point in the history
  • Loading branch information
shi-su authored Aug 24, 2020
1 parent f0b1e54 commit c4a86b3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions syncd/scripts/syncd_init_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
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
Expand Down

0 comments on commit c4a86b3

Please sign in to comment.