-
Notifications
You must be signed in to change notification settings - Fork 710
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
base: master
Are you sure you want to change the base?
Configure Max NTP Server limit #3311
Conversation
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]>
Signed-off-by: reshmanbablo <[email protected]>
Signed-off-by: reshmanbablo <[email protected]>
Signed-off-by: reshmanbablo <[email protected]>
Signed-off-by: reshmanbablo <[email protected]>
Commenter does not have sufficient privileges for PR 3311 in repo sonic-net/sonic-utilities |
@liat-grozovik @saiarcot895 |
Looks like the HLD you linked to is on a private branch. Is there a HLD PR link? |
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. |
Thanks for the pointing out @saiarcot895 . I haven't verified with latest HLD. |
@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? |
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)