Skip to main content

Date and Time Policy

Location in GUI: Fabric » Fabric Policies » Fabric Policies » Policies » Pod » Date and Time

Diagram

Classes

pod_policies (apic.fabric_policies)

NameTypeConstraintMandatoryDefault Value
date_time_policiesList[date_time_policies]No

date_time_policies (apic.fabric_policies.pod_policies)

NameTypeConstraintMandatoryDefault Value
nameStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$No
ntp_admin_stateBooleantrue, falseNotrue
ntp_auth_stateBooleantrue, falseNofalse
apic_ntp_server_stateBooleantrue, falseNofalse
apic_ntp_server_master_modeBooleantrue, falseNofalse
apic_ntp_server_master_stratumIntegermin: 1, max: 14No8
ntp_serversList[ntp_servers]No
ntp_keysList[ntp_keys]No
expected_stateClass[expected_state]No

ntp_servers (apic.fabric_policies.pod_policies.date_time_policies)

NameTypeConstraintMandatoryDefault Value
hostname_ipAnyString[Regex: ^[a-zA-Z0-9:][a-zA-Z0-9.:-]{0,254}$] or IPYes
auth_key_idIntegermin: 1, max: 65535No
preferredBooleantrue, falseNotrue
mgmt_epgChoiceinb, oobNoinb

ntp_keys (apic.fabric_policies.pod_policies.date_time_policies)

NameTypeConstraintMandatoryDefault Value
idIntegermin: 1, max: 65535Yes
keyStringmin: 0, max: 40Yes
auth_typeChoicemd5, sha1Yes
trustedBooleantrue, falseYes

expected_state (apic.fabric_policies.pod_policies.date_time_policies)

NameTypeConstraintMandatoryDefault Value
minimum_healthIntegermin: 0, max: 100No
maximum_critical_faultsIntegermin: 0No
maximum_major_faultsIntegermin: 0No
maximum_minor_faultsIntegermin: 0No

Examples

Simple example:

apic:
fabric_policies:
pod_policies:
date_time_policies:
- name: NTP1
ntp_servers:
- hostname_ip: 1.1.1.13

Full example:

apic:
fabric_policies:
pod_policies:
date_time_policies:
- name: NTP1
ntp_admin_state: true
ntp_auth_state: false
apic_ntp_server_state: false
apic_ntp_server_master_mode: false
apic_ntp_server_master_stratum: 8
ntp_servers:
- hostname_ip: 1.1.1.13
auth_key_id: 1
preferred: true
mgmt_epg: oob
ntp_keys:
- id: 1
key: key1
auth_type: md5
trusted: false