Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tests/common/helpers/ntp_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ def setup_ntp_context(ptfhost, duthost, ptf_use_ipv6):
ptfhost.lineinfile(
path=ntp_conf_path, line="#pool 3.debian.pool.ntp.org iburst", regexp="^pool.*3.debian.*pool.*ntp.*org.*")

# Comment out the tos minclock minsane option line
# Having this option enabled can cause the NTP server to not synchronize
# with the PTF host, which can lead to test failures.
ptfhost.lineinfile(
path=ntp_conf_path, line="#tos minclock 4 minsane 3", regexp="^tos.*minclock.*minsane.*")

ptfhost.lineinfile(path=ntp_conf_path, line="server 127.127.1.0 prefer")

# restart ntp server
Expand Down
Loading