Skip to content
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

[202311][cherry-pick][NTP] 🐞 Fix config template to init default parameters #18981

Merged
merged 1 commit into from
May 28, 2024

Conversation

fastiuk
Copy link
Contributor

@fastiuk fastiuk commented May 16, 2024

fixes #17906
cherry-pick #18736

Why I did it

To fix NTP config generation from the minigraph and save backward compatability

Work item tracking
  • Microsoft ADO (number only):

How I did it

Align ntp.conf.j2 template to generate config out of empty NTP_SERVER DB configuration

How to verify it

Out of that NTP_SERVER configuration:

{
  "10.210.25.32": {},
  "10.75.202.2": {}
}

The next config in ntp.conf file should be produced:

server 10.210.25.32
restrict 10.210.25.32 kod limited nomodify notrap noquery nopeer

server 10.75.202.2
restrict 10.75.202.2 kod limited nomodify notrap noquery nopeer

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305
  • 202311

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (it is my cat Finn)

PXL_20230413_140941610 PORTRAIT

@fastiuk fastiuk changed the base branch from master to 202311 May 16, 2024 16:46
fixes sonic-net#17906

To fix NTP config generation from the minigraph and save backward compatability

Align `ntp.conf.j2` template to generate config out of empty `NTP_SERVER` DB configuration

Out of that NTP_SERVER configuration:
```json
{
  "10.210.25.32": {},
  "10.75.202.2": {}
}
```

The next config in `ntp.conf` file should be produced:
```
server 10.210.25.32
restrict 10.210.25.32 kod limited nomodify notrap noquery nopeer

server 10.75.202.2
restrict 10.75.202.2 kod limited nomodify notrap noquery nopeer
```

Signed-off-by: Yevhen Fastiuk <yfastiuk@nvidia.com>
@yxieca yxieca merged commit 2e1892b into sonic-net:202311 May 28, 2024
18 checks passed
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.

The NTP_SERVER configuration generated from the minigraph doesn't meet the new schema requirements.
2 participants