Skip to content

Configure NTP according to extended configuration#2835

Merged
liat-grozovik merged 5 commits intosonic-net:masterfrom
fastiuk:dev-ntp-configuration
Nov 9, 2023
Merged

Configure NTP according to extended configuration#2835
liat-grozovik merged 5 commits intosonic-net:masterfrom
fastiuk:dev-ntp-configuration

Conversation

@fastiuk
Copy link
Copy Markdown
Contributor

@fastiuk fastiuk commented May 13, 2023

hld #1219
closes #1171

What I did

Fix NTP CLI according to new extended configuration abilities

How I did it

Additionally configure association_type and resolve_as when adding new NTP servers.

How to verify it

  • Add a new server
  • Show NTP sync show ntp. It should show you are sync with new server
  • Delete NTP server
  • Show NTP sync show ntp. It should show you are unsync

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)

Not changed

@fastiuk fastiuk force-pushed the dev-ntp-configuration branch from da81c66 to 94946ac Compare July 4, 2023 22:18
@bsun-sudo
Copy link
Copy Markdown
Contributor

Just want to make sure. Should this PR support all new configurations from the HLD, or there will be a separate PR?

@fastiuk
Copy link
Copy Markdown
Contributor Author

fastiuk commented Oct 2, 2023

Just want to make sure. Should this PR support all new configurations from the HLD, or there will be a separate PR?

No, the new commands won't be supported by this PR

@liat-grozovik
Copy link
Copy Markdown
Collaborator

could it be that the NTP command now looks different?
if so, https://github.com/sonic-net/sonic-utilities/blob/master/doc/Command-Reference.md#ntp-config-commands should be updated and aligned with the extra options

@liat-grozovik liat-grozovik merged commit 62fcd77 into sonic-net:master Nov 9, 2023
@liat-grozovik liat-grozovik changed the title [NTP] Configure NTP according to extended configuration Configure NTP according to extended configuration Nov 9, 2023
qiluo-msft pushed a commit to sonic-net/sonic-buildimage that referenced this pull request Dec 11, 2023
hld [#1296](sonic-net/SONiC#1296)
closes [#1254](sonic-net/SONiC#1254)
depends-on [#60](sonic-net/sonic-host-services#60), [#781](sonic-net/sonic-swss-common#781), [#2835](sonic-net/sonic-utilities#2835), [#10749](sonic-net/sonic-mgmt#10749)

#### Why I did it
To cover the next AIs:
* Configure NTP global parameters
* Add/remove new NTP servers
* Change the configuration for NTP servers
* Show NTP status
* Show NTP configuration

### How I did it
* Add YANG model for a new configuration
* Extend configuration templates to support new knobs

### Description for the changelog
* Add ability to configure NTP global parameters such as authentication, dhcp, admin state
* Change the configuration for NTP servers
* Add an ability to show NTP configuration

#### Link to config_db schema for YANG module changes
[NTP configuration](https://github.com/sonic-net/sonic-buildimage/blob/master/src/sonic-yang-models/doc/Configuration.md#ntp-and-syslog-servers)
nmoray pushed a commit to nmoray/sonic-utilities that referenced this pull request Jun 25, 2025
- What I did
Fix NTP CLI according to new extended configuration abilities

- How I did it
Additionally configure association_type and resolve_as when adding new NTP servers.

- How to verify it
1. Add a new server
2. Show NTP sync show ntp. It should show you are sync with new server
3. Delete NTP server
4. Show NTP sync show ntp. It should show you are unsync

Signed-off-by: Yevhen Fastiuk <[email protected]>
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.

NTP: Additional NTP configuration knobs + NTP server provisioning

4 participants