Skip to content

Commit 4cd54ed

Browse files
committed
[ntp] disable ntp long jump (sonic-net#4748)
Found another syncd timing issue related to clock going backwards. To be safe disable the ntp long jump. Signed-off-by: Ying Xie <[email protected]>
1 parent d433e52 commit 4cd54ed

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

files/image_config/ntp/ntp-config.sh

+2-7
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,7 @@ function modify_ntp_default
2626
sonic-cfggen -d -t /usr/share/sonic/templates/ntp.conf.j2 >/etc/ntp.conf
2727

2828
get_database_reboot_type
29-
if [[ x"${reboot_type}" == x"cold" ]]; then
30-
echo "Enabling NTP long jump for reboot type ${reboot_type} ..."
31-
modify_ntp_default "s/NTPD_OPTS='-x'/NTPD_OPTS='-g'/"
32-
else
33-
echo "Disabling NTP long jump for reboot type ${reboot_type} ..."
34-
modify_ntp_default "s/NTPD_OPTS='-g'/NTPD_OPTS='-x'/"
35-
fi
29+
echo "Disabling NTP long jump for reboot type ${reboot_type} ..."
30+
modify_ntp_default "s/NTPD_OPTS='-g'/NTPD_OPTS='-x'/"
3631

3732
systemctl restart ntp

0 commit comments

Comments
 (0)