.. _cisco.iosxr.iosxr_ntp_global_module:
****************************
cisco.iosxr.iosxr_ntp_global
****************************
**Resource module to configure NTP.**
Version added: 2.5.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module configures and manages the attributes of ntp on Cisco IOSXR platforms.
Parameters
----------
.. raw:: html
| Parameter |
Choices/Defaults |
Comments |
|
config
dictionary
|
|
A dictionary of ntp options
|
|
access_group
dictionary
|
|
Control NTP access
|
|
|
ipv4
dictionary
|
|
Configure IPv4 access
|
|
|
|
peer
string
|
|
Provide full access
|
|
|
|
query_only
string
|
|
Allow only control queries.
|
|
|
|
serve
string
|
|
Provide server and query access.
|
|
|
|
serve_only
string
|
|
Provide only server access.
|
|
|
ipv6
dictionary
|
|
Configure IPv6 access
|
|
|
|
peer
string
|
|
Provide full access
|
|
|
|
query_only
string
|
|
Allow only control queries.
|
|
|
|
serve
string
|
|
Provide server and query access.
|
|
|
|
serve_only
string
|
|
Provide only server access.
|
|
|
vrfs
list
/ elements=dictionary
|
|
Specify non-default VRF.
|
|
|
|
ipv4
dictionary
|
|
Configure IPv4 access
|
|
|
|
|
peer
string
|
|
Provide full access
|
|
|
|
|
query_only
string
|
|
Allow only control queries.
|
|
|
|
|
serve
string
|
|
Provide server and query access.
|
|
|
|
|
serve_only
string
|
|
Provide only server access.
|
|
|
|
ipv6
dictionary
|
|
Configure IPv6 access
|
|
|
|
|
peer
string
|
|
Provide full access
|
|
|
|
|
query_only
string
|
|
Allow only control queries.
|
|
|
|
|
serve
string
|
|
Provide server and query access.
|
|
|
|
|
serve_only
string
|
|
Provide only server access.
|
|
|
|
name
string
|
|
Specify non-default VRF.
|
|
authenticate
boolean
|
|
Authenticate time sources
|
|
authentication_keys
list
/ elements=dictionary
|
|
Authentication key for trusted time sources
|
|
|
encryption
boolean
|
|
Type of key encrypted or clear-text.
|
|
|
id
integer
|
|
<1-65535> Key number
|
|
|
key
string
|
|
Authentication key.
|
|
broadcastdelay
integer
|
|
Estimated round-trip delay in microseconds.
|
|
drift
dictionary
|
|
Drift(cisco-support)
|
|
|
aging_time
integer
|
|
Aging time in hours.
|
|
|
file
string
|
|
File for drift values.
|
|
interfaces
list
/ elements=dictionary
|
|
Configure NTP on an interface.
|
|
|
broadcast_client
boolean
|
|
Listen to NTP broadcasts
|
|
|
broadcast_destination
string
|
|
Configure broadcast destination address.
|
|
|
broadcast_key
integer
|
|
Broadcast key number.
|
|
|
broadcast_version
integer
|
|
<2-4> NTP version number.
|
|
|
multicast_client
string
|
|
Configure multicast client
|
|
|
multicast_destination
string
|
|
Configure multicast destination
|
|
|
multicast_key
integer
|
|
Configure multicast authentication key.
|
|
|
multicast_ttl
integer
|
|
Configure TTL to use.
|
|
|
multicast_version
integer
|
|
<2-4> NTP version number.
|
|
|
name
string
|
|
Name of the interface.
|
|
|
vrf
string
|
|
Name of the vrf.
|
|
ipv4
dictionary
|
|
Mark the dscp/precedence bit for ipv4 packets.
|
|
|
dscp
string
|
|
Set IP DSCP (DiffServ CodePoint).Please refer vendor document for valid entries.
|
|
|
precedence
string
|
Choices:
- critical
- flash
- flash-override
- immediate
- internet
- network
- priority
- routine
|
Set precedence Please refer vendor document for valid entries.
|
|
ipv6
dictionary
|
|
Mark the dscp/precedence bit for ipv4 packets.
|
|
|
dscp
string
|
|
Set IP DSCP (DiffServ CodePoint).Please refer vendor document for valid entries.
|
|
|
precedence
string
|
Choices:
- critical
- flash
- flash-override
- immediate
- internet
- network
- priority
- routine
|
Set precedence Please refer vendor document for valid entries.
|
|
log_internal_sync
boolean
|
|
Logs internal synchronization changes.
|
|
master
dictionary
|
|
Act as NTP master clock
|
|
|
stratum
integer
|
|
Use NTP as clock source with stratum number <1-15>
|
|
max_associations
integer
|
|
<0-4294967295> Number of associations.
|
|
passive
boolean
|
|
Enable the passive associations.
|
|
peers
list
/ elements=dictionary
|
|
Configure NTP peer.
|
|
|
burst
boolean
|
|
Use burst mode.
|
|
|
iburst
boolean
|
|
Use initial burst mode.
|
|
|
key_id
integer
|
|
SConfigure peer authentication key
|
|
|
maxpoll
integer
|
|
configure Maximum poll interval.
|
|
|
minpoll
integer
|
|
configure Minimum poll interval.
|
|
|
peer
string
/ required
|
|
Hostname or A.B.C.D or A:B:C:D:E:F:G:H.
|
|
|
prefer
boolean
|
|
Prefer this peer when possible
|
|
|
source
string
|
|
Interface for source address.
|
|
|
version
integer
|
|
NTP version.
|
|
|
vrf
string
|
|
vrf name.
|
|
servers
list
/ elements=dictionary
|
|
Configure NTP server.
|
|
|
burst
boolean
|
|
Use burst mode.
|
|
|
iburst
boolean
|
|
Use initial burst mode.
|
|
|
key_id
integer
|
|
SConfigure peer authentication key
|
|
|
maxpoll
integer
|
|
configure Maximum poll interval.
|
|
|
minpoll
integer
|
|
configure Minimum poll interval.
|
|
|
prefer
boolean
|
|
Prefer this peer when possible
|
|
|
server
string
/ required
|
|
Hostname or A.B.C.D or A:B:C:D:E:F:G:H.
|
|
|
source
string
|
|
Interface for source address.
|
|
|
version
integer
|
|
NTP version.
|
|
|
vrf
string
|
|
vrf name.
|
|
source_interface
string
|
|
Configure default interface.
|
|
source_vrfs
list
/ elements=dictionary
|
|
Configure default interface.
|
|
|
name
string
|
|
Name of source interface.
|
|
|
vrf
string
|
|
vrf name.
|
|
trusted_keys
list
/ elements=dictionary
|
|
list of Key numbers for trusted time sources.
|
|
|
key_id
integer
|
|
Key numbers for trusted time sources.
|
|
update_calendar
boolean
|
|
Periodically update calendar with NTP time.
|
|
running_config
string
|
|
This option is used only with state parsed.
The value of this option should be the output received from the IOSXR device by executing the command show running-config ntp.
The state parsed reads the configuration from running_config option and transforms it into Ansible structured data as per the resource module's argspec and the value is then returned in the parsed key within the result.
|
|
state
string
|
Choices:
- deleted
merged ←
- overridden
- replaced
- gathered
- rendered
- parsed
|
The state the configuration should be left in.
|