Skip to content
Closed
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
4 changes: 4 additions & 0 deletions tests/ntp/test_ntp.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ def _context_for_setup_ntp(ptfhost, duthosts, rand_one_dut_hostname, ptf_use_ipv

duthost.command("config ntp add %s" % (ptfhost.mgmt_ipv6 if ptf_use_ipv6 else ptfhost.mgmt_ip))

duthost.command("sonic-db-cli CONFIG_DB HSET 'NTP_SERVER|%s' iburst true"
% (ptfhost.mgmt_ipv6 if ptf_use_ipv6 else ptfhost.mgmt_ip))
duthost.service(name="ntp-config", state="restarted")

yield

# stop ntp server
Expand Down