Skip to content

add minpoll&maxpoll in ntp.conf.j2 when generating ntp.conf#16369

Closed
bsun-sudo wants to merge 1 commit intosonic-net:masterfrom
bsun-sudo:master
Closed

add minpoll&maxpoll in ntp.conf.j2 when generating ntp.conf#16369
bsun-sudo wants to merge 1 commit intosonic-net:masterfrom
bsun-sudo:master

Conversation

@bsun-sudo
Copy link
Contributor

@bsun-sudo bsun-sudo commented Sep 1, 2023

Why I did it

When generating ntp.conf upon CONFIG_DB NTP_SERVER change, get the minpoll & maxpoll values from db entry and populate these in ntp.conf

PR to update NTP HLD is sonic-net/SONiC#1478

How I did it

Add the minpoll & maxpoll handling code in ntp.conf.j2

How to verify it

Use click ntp server add command with optional minpoll & maxpoll commands.
Verify ntp.conf is generated correctly.

unit tests results in PR sonic-net/sonic-utilities#2964

@bsun-sudo bsun-sudo requested a review from lguohan as a code owner September 1, 2023 04:45
@lguohan
Copy link
Collaborator

lguohan commented Sep 2, 2023

is there design doc?

@bsun-sudo
Copy link
Contributor Author

bsun-sudo commented Sep 18, 2023

is there design doc?

Hi @lguohan , create PR of updated NTP HLD to support NTP server minpoll & maxpoll configiruation.
sonic-net/SONiC#1478

@bsun-sudo
Copy link
Contributor Author

Close this PR. The change of this file is already in https://github.com/sonic-net/sonic-buildimage/pull/16310/files

@bsun-sudo bsun-sudo closed this Nov 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants