Skip to content

Configure Max NTP Server limit #3311

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

reshmanbablo
Copy link

What I did

Maximum NTP Server limit has been added as 10 with an appropriate error message.
Ref : NTP Scalability Requirements

How I did it

In config/main.py, Validation code has been added to check whether the maximum NTP server limit is reached or not .
An error message has been added when it exceeds the limit.

How to verify it

Issue config ntp add <ip_address> 10 times.
After the max limit , error message Error: Max elements limit 10 reached. will be thrown.

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

Root-cause : NTP Server max limit has not been conifgured.

What I did : Maximum NTP Server limit has been configured as 10 with an error message

Signed-off-by: Reshman Bablo B <[email protected]>
Copy link

linux-foundation-easycla bot commented May 9, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

Signed-off-by: reshmanbablo <[email protected]>
Signed-off-by: reshmanbablo <[email protected]>
Signed-off-by: reshmanbablo <[email protected]>
Signed-off-by: reshmanbablo <[email protected]>
Copy link

Commenter does not have sufficient privileges for PR 3311 in repo sonic-net/sonic-utilities

@reshmanbablo
Copy link
Author

reshmanbablo commented May 14, 2024

@liat-grozovik @saiarcot895
Request to review

@saiarcot895
Copy link
Contributor

Looks like the HLD you linked to is on a private branch. Is there a HLD PR link?

@saiarcot895
Copy link
Contributor

In the current NTP HLD (https://github.com/sonic-net/SONiC/blob/master/doc/ntp/ntp-design.md), I don't see any such limitation.

@reshmanbablo
Copy link
Author

Thanks for the pointing out @saiarcot895 . I haven't verified with latest HLD.

@reshmanbablo
Copy link
Author

reshmanbablo commented May 31, 2024

@saiarcot895 Actually src/sonic-yang-models/yang-models/sonic-ntp.yang has mentioned the max-elements as 10 in NTP_SERVER_LIST with description mentioned in Excessive Number of Upstream Time Servers. Is this yang need to be corrected?

@reshmanbablo reshmanbablo reopened this May 31, 2024
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