Skip to content

NTP

Diagram

Diagram

Classes

configuration (iosxe.devices)

NameTypeConstraintMandatoryDefault Value
ntpClass[ntp]No

ntp (iosxe.devices.configuration)

NameTypeConstraintMandatoryDefault Value
authenticateBooleantrue, falseNo
loggingBooleantrue, falseNo
access_group_peer_aclStringNo
access_group_query_only_aclStringNo
access_group_serve_aclStringNo
access_group_serve_only_aclStringNo
authentication_keysList[authentication_keys]No
clock_periodIntegermin: 0, max: 4294967295No
delete_modeChoiceall, attributesNo
masterBooleantrue, falseNo
master_stratumIntegermin: 1, max: 15No
passiveBooleantrue, falseNo
update_calendarBooleantrue, falseNo
trap_source_interface_typeChoiceLoopback, Vlan, GigabitEthernet, TenGigabitEthernet, FortyGigabitEthernet, HundredGigabitEthernet, PortChannelNo
trap_source_interface_idStringNo
serversList[servers]No
peersList[peers]No

authentication_keys (iosxe.devices.configuration.ntp)

NameTypeConstraintMandatoryDefault Value
numberIntegermin: 1, max: 4294967295Yes
trustedBooleantrue, falseNo
modeChoicemd5, cmac_aes_128, hmac_sha1, hmac_sha2_256, sha1, sha2No
keyStringNo
encryption_typeIntegermin: 0, max: 4294967295No

servers (iosxe.devices.configuration.ntp)

NameTypeConstraintMandatoryDefault Value
ipIPYes
vrfStringNo
source_interface_typeChoiceLoopback, Vlan, GigabitEthernet, TenGigabitEthernet, FortyGigabitEthernet, HundredGigabitEthernet, PortChannel, PortChannelSubinterfaceNo
source_interface_idStringNo
keyIntegermin: 1, max: 4294967295No
preferBooleantrue, falseNo
versionIntegermin: 1, max: 4No

peers (iosxe.devices.configuration.ntp)

NameTypeConstraintMandatoryDefault Value
ipIPYes
vrfStringNo
source_interface_typeChoiceLoopback, Vlan, GigabitEthernet, TenGigabitEthernet, FortyGigabitEthernet, HundredGigabitEthernet, PortChannelNo
source_interface_idStringNo
keyIntegermin: 1, max: 4294967295No
preferBooleantrue, falseNo
versionIntegermin: 1, max: 4No

Examples

iosxe:
devices:
- name: Device1
configuration:
ntp:
authenticate: true
logging: false
access_group_peer_acl: SACL1
access_group_query_only_acl: SACL1
access_group_serve_acl: SACL1
access_group_serve_only_acl: SACL1
authentication_keys:
- number: 1
trusted: true
md5: 060506324F41584B564347
encryption_type: 7
- number: 2
sha1: ef7e6e511c5d0dfba849b2a8c71b62dd2968806f
encryption_type: 8
- number: 3
trusted: true
cmac_aes_128: 875d5d2b5d5d5dd75d5dd95d5d415d5d
encryption_type: 8
- number: 4
hmac_sha1: 4f65bcec7ee0e9bfaa6e2ff52021fa45865943f4
encryption_type: 8
- number: 5
hmac_sha2_256: 64f45ee02fdf0f7434d1e598726030af74b5f4c087be5b21e8b4b6b9eae440f4
encryption_type: 8
- number: 6
sha2: 223e83031067fc6822052fda7bd146d39b27387dbaafbac3730b4e6e
encryption_type: 8
clock_period: 1
master: true
master_stratum: 5
passive: false
update_calendar: false
trap_source: 1/0/1.322
servers:
- ip: 1.2.3.4
source: Loopback1
key: 1
prefer: true
version: 2
- ip: 1.2.3.5
vrf: SERVER_VRF_1
source: Loopback1
key: 1
prefer: true
version: 2
peers:
- ip: 5.2.3.4
source: Loopback2
key: 1
prefer: true
version: 2
- ip: 5.2.3.1
source: Loopback2
vrf: PEER_VRF_1
key: 1
prefer: true
version: 2