Skip to content

Remove limit of 10 NTP servers being configured - #30500

Open
saiarcot895 wants to merge 1 commit into
sonic-net:masterfrom
saiarcot895:remove-ntp-server-limit
Open

saiarcot895 wants to merge 1 commit into
sonic-net:masterfrom
saiarcot895:remove-ntp-server-limit

Conversation

@saiarcot895

Copy link
Copy Markdown
Contributor

Why I did it

The NTP daemon will use however many it wishes to use for time synchronization, and neither Chrony nor ntpd have limits on how many can be configured.

Work item tracking
  • Microsoft ADO (number only):

How I did it

Allow configuring any number of NTP servers by removing the YANG restriction of 10 elements.

How to verify it

Which release branch to backport (provide reason below if selected)

  • 202305
  • 202311
  • 202405
  • 202411
  • 202505
  • 202511
  • 202512
  • 202605
  • 202608

Tracking issue/work item for backport/cherry-pick request (GitHub issue or Microsoft ADO):
Failure type:

Tested branch

  • master
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505
  • 202511
  • 202512
  • 202605
  • 202608
  • N/A

Test result

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

The NTP daemon will use however many it wishes to use for time
synchronization, and neither Chrony nor ntpd have limits on how many can
be configured.

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
Copilot AI balanced review requested due to automatic review settings November 2, 2026 17:57
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

A positive schema-validation test with at least 11 distinct NTP servers is still missing, leaving the removed ten-server limit without regression coverage.

1 open issue
What changed in this PR

This PR removes the ten-server limit from SONiC’s NTP YANG model, allowing configurations with more than ten upstream NTP servers.

Changes:

  • Removes max-elements 10 from NTP_SERVER_LIST.
  • Simplifies the list description, removing the guidance link about excessive upstream servers.
File Description
src/​sonic-yang-models/​yang-models/​sonic-ntp.yang Removes the NTP server count restriction and updates the list description.

Review effort: Balanced

"Number of upstream NTP servers is discussed at
https://support.ntp.org/bin/view/Support/SelectingOffsiteNTPServers
(5.3.4. Excessive Number of Upstream Time Servers).";
"List of all upstream servers to use.";
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.

3 participants