Skip to main content

NTP Feature

Configure NTP servers and authentication if required.

Diagram

Classes

system_profiles (sdwan.feature_profiles)

NameTypeConstraintMandatoryDefault Value
ntpClass[ntp]No

ntp (sdwan.feature_profiles.system_profiles)

NameTypeConstraintMandatoryDefault Value
nameStringRegex: ^[^&<>! "]{1,128}$No
descriptionStringNo
authentication_keysList[authentication_keys]No
authoritative_ntp_serverBooleantrue, falseNo
authoritative_ntp_server_variableStringRegex: ^[./\[\]a-zA-Z0-9_-]{1,64}$No
authoritative_ntp_server_source_interfaceStringRegex: ^(GigabitEthernet|Loopback|TenGigabitEthernet|TwoGigabitEthernet|FortyGigabitEthernet|HundredGigE|Vlan)(([1-9]\d|\d)/){0,2}(0|[1-9]\d*)([:|\.][1-9]\d*)?No
authoritative_ntp_server_source_interface_variableStringRegex: ^[./\[\]a-zA-Z0-9_-]{1,64}$No
authoritative_ntp_server_stratumIntegermin: 1, max: 15No
authoritative_ntp_server_stratum_variableStringRegex: ^[./\[\]a-zA-Z0-9_-]{1,64}$No
serversList[servers]No
trusted_keysListInteger[min: 1, max: 65535]No
trusted_keys_variableStringRegex: ^[./\[\]a-zA-Z0-9_-]{1,64}$No

authentication_keys (sdwan.feature_profiles.system_profiles.ntp)

NameTypeConstraintMandatoryDefault Value
idIntegermin: 1, max: 65535No
id_variableStringRegex: ^[./\[\]a-zA-Z0-9_-]{1,64}$No
md5_valueStringmin: 1No
md5_value_variableStringRegex: ^[./\[\]a-zA-Z0-9_-]{1,64}$No

servers (sdwan.feature_profiles.system_profiles.ntp)

NameTypeConstraintMandatoryDefault Value
authentication_keyIntegermin: 1, max: 65535No
authentication_key_variableStringRegex: ^[./\[\]a-zA-Z0-9_-]{1,64}$No
hostname_ipIPNo
hostname_ip_variableStringRegex: ^[./\[\]a-zA-Z0-9_-]{1,64}$No
preferBooleantrue, falseNo
prefer_variableStringRegex: ^[./\[\]a-zA-Z0-9_-]{1,64}$No
source_interfaceStringRegex: ^(GigabitEthernet|Loopback|TenGigabitEthernet|TwoGigabitEthernet|FortyGigabitEthernet|HundredGigE|Vlan)(([1-9]\d|\d)/){0,2}(0|[1-9]\d*)([:|\.][1-9]\d*)?No
source_interface_variableStringRegex: ^[./\[\]a-zA-Z0-9_-]{1,64}$No
ntp_versionIntegermin: 0, max: 4No
ntp_version_variableStringRegex: ^[./\[\]a-zA-Z0-9_-]{1,64}$No
vpn_idIntegermin: 0, max: 65530No
vpn_id_variableStringRegex: ^[./\[\]a-zA-Z0-9_-]{1,64}$No

Examples

sdwan:
feature_profiles:
system_profiles:
- name: system1
description: this is test system profile
ntp:
name: ntp
description: "Base NTP template; no auth key; no ntp master"
servers:
- hostname_ip: 172.16.0.11
prefer: true
source_interface_variable: ntp_server_source_interface
vpn_id: 0
- hostname_ip: time-pnp.cisco.com
prefer: false
source_interface: GigabitEthernet0/0/0
vpn_id: 0