.. _dellemc.enterprise_sonic.sonic_ntp_module:
**********************************
dellemc.enterprise_sonic.sonic_ntp
**********************************
**Manage NTP configuration on SONiC.**
Version added: 2.0.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module provides configuration management of NTP for devices running SONiC.
Parameters
----------
.. raw:: html
| Parameter |
Choices/Defaults |
Comments |
|
config
dictionary
|
|
Specifies NTP related configurations.
|
|
enable_ntp_auth
boolean
|
|
Enable or disable NTP authentication.
|
|
ntp_keys
list
/ elements=dictionary
|
|
List of NTP authentication keys.
|
|
|
encrypted
boolean
|
|
NTP authentication key_value is encrypted.
encrypted can not be deleted.
When "state" is "merged", "encrypted" is required.
|
|
|
key_id
integer
/ required
|
|
NTP authentication key identifier.
|
|
|
key_type
string
|
Choices:
- NTP_AUTH_SHA1
- NTP_AUTH_MD5
- NTP_AUTH_SHA2_256
|
NTP authentication key type.
key_type can not be deleted.
When "state" is "merged", "key_type" is required.
|
|
|
key_value
string
|
|
NTP authentication key value.
key_value can not be deleted.
When "state" is "merged", "key_value" is required.
|
|
servers
list
/ elements=dictionary
|
|
List of NTP servers.
minpoll and maxpoll are required to be configured together.
|
|
|
address
string
/ required
|
|
IPv4/IPv6 address or host name of NTP server.
|
|
|
key_id
integer
|
|
NTP authentication key used by server.
Key_id can not be deleted.
|
|
|
maxpoll
integer
|
|
Maximum poll interval to poll NTP server.
maxpoll can not be deleted.
|
|
|
minpoll
integer
|
|
Minimum poll interval to poll NTP server.
minpoll can not be deleted.
|
|
|
prefer
boolean
|
|
Indicates whether this server should be preferred.
prefer can not be deleted.
|
|
source_interfaces
list
/ elements=string
|
|
List of names of NTP source interfaces.
|
|
trusted_keys
list
/ elements=integer
|
|
List of trusted NTP authentication keys.
|
|
vrf
string
|
|
VRF name on which NTP is enabled.
|
|
state
string
|
Choices:
merged ←
- replaced
- overridden
- deleted
|
The state of the configuration after module completion.
|