Date and Time Policy
Location in GUI: Fabric » Fabric Policies » Fabric Policies » Policies » Pod » Date and Time
Diagram
Section titled “Diagram”Classes
Section titled “Classes”pod_policies (apic.fabric_policies)
Section titled “pod_policies (apic.fabric_policies)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| date_time_policies | List | [date_time_policies] | No |
date_time_policies (apic.fabric_policies.pod_policies)
Section titled “date_time_policies (apic.fabric_policies.pod_policies)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| name | String | Regex: ^[a-zA-Z0-9_.:-]{1,64}$ | No | |
| ntp_admin_state | Boolean | true, false | No | true |
| ntp_auth_state | Boolean | true, false | No | false |
| apic_ntp_server_state | Boolean | true, false | No | false |
| apic_ntp_server_master_mode | Boolean | true, false | No | false |
| apic_ntp_server_master_stratum | Integer | min: 1, max: 14 | No | 8 |
| ntp_servers | List | [ntp_servers] | No | |
| ntp_keys | List | [ntp_keys] | No |
ntp_servers (apic.fabric_policies.pod_policies.date_time_policies)
Section titled “ntp_servers (apic.fabric_policies.pod_policies.date_time_policies)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| hostname_ip | Any | String[Regex: ^[a-zA-Z0-9:][a-zA-Z0-9.:-]{0,254}$] or IP | Yes | |
| auth_key_id | Integer | min: 1, max: 65535 | No | |
| preferred | Boolean | true, false | No | true |
| mgmt_epg | Choice | inb, oob | No | inb |
ntp_keys (apic.fabric_policies.pod_policies.date_time_policies)
Section titled “ntp_keys (apic.fabric_policies.pod_policies.date_time_policies)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| id | Integer | min: 1, max: 65535 | Yes | |
| key | String | min: 0, max: 40 | Yes | |
| auth_type | Choice | md5, sha1 | Yes | |
| trusted | Boolean | true, false | Yes |
Examples
Section titled “Examples”Example-1: This data model creates a Data and Time policy named ntp_policy_simple. This creates a simple policy with two NTP servers defined. This configuration sets one of the NTP servers as the preferred time server (preferred: true).
apic: fabric_policies: pod_policies: date_time_policies: - name: ntp_policy_simple ntp_servers: - hostname_ip: 10.0.0.100 preferred: true - hostname_ip: 20.0.0.200 preferred: falseExample-2: This data model creates a Data and Time policy named ntp_policy_with_auth. This creates a policy with two NTP servers defined where NTP Authentication is used. This configuration sets one of the NTP servers as the preferred time server (preferred: true) and uses the out-of-band management network for the NTP traffic (mgmt_epg: oob). The NTP servers use the value for the auth_key_id key to associate it the NTP server with the id of the NTP key listed in the ntp_keys section. If the key includes special characters it is recommended to enclose the key in single quotes ''.
apic: fabric_policies: pod_policies: date_time_policies: - name: ntp_policy_with_auth ntp_auth_state: true ntp_servers: - hostname_ip: 10.0.0.100 auth_key_id: 1 preferred: true mgmt_epg: oob - hostname_ip: 20.0.0.200 auth_key_id: 1 mgmt_epg: oob preferred: false ntp_keys: - id: 1 key: 'My$ecretKey' auth_type: md5 trusted: falseLocation in GUI: Fabric » Fabric Policies » Fabric Policies » Policies » Pod » Date and Time
Diagram
Section titled “Diagram”Classes
Section titled “Classes”pod_policies (apic.fabric_policies)
Section titled “pod_policies (apic.fabric_policies)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| date_time_policies | List | [date_time_policies] | No |
date_time_policies (apic.fabric_policies.pod_policies)
Section titled “date_time_policies (apic.fabric_policies.pod_policies)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| name | String | Regex: ^[a-zA-Z0-9_.:-]{1,64}$ | No | |
| ntp_admin_state | Boolean | true, false | No | true |
| ntp_auth_state | Boolean | true, false | No | false |
| apic_ntp_server_state | Boolean | true, false | No | false |
| apic_ntp_server_master_mode | Boolean | true, false | No | false |
| apic_ntp_server_master_stratum | Integer | min: 1, max: 14 | No | 8 |
| ntp_servers | List | [ntp_servers] | No | |
| ntp_keys | List | [ntp_keys] | No |
ntp_servers (apic.fabric_policies.pod_policies.date_time_policies)
Section titled “ntp_servers (apic.fabric_policies.pod_policies.date_time_policies)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| hostname_ip | Any | String[Regex: ^[a-zA-Z0-9:][a-zA-Z0-9.:-]{0,254}$] or IP | Yes | |
| auth_key_id | Integer | min: 1, max: 65535 | No | |
| preferred | Boolean | true, false | No | true |
| mgmt_epg | Choice | inb, oob | No | inb |
ntp_keys (apic.fabric_policies.pod_policies.date_time_policies)
Section titled “ntp_keys (apic.fabric_policies.pod_policies.date_time_policies)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| id | Integer | min: 1, max: 65535 | Yes | |
| key | String | min: 0, max: 40 | Yes | |
| auth_type | Choice | md5, sha1 | Yes | |
| trusted | Boolean | true, false | Yes |
Examples
Section titled “Examples”Simple example:
apic: fabric_policies: pod_policies: date_time_policies: - name: NTP1 ntp_servers: - hostname_ip: 1.1.1.13Full 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: falseLocation in GUI: Fabric » Fabric Policies » Fabric Policies » Policies » Pod » Date and Time
Diagram
Section titled “Diagram”Classes
Section titled “Classes”pod_policies (apic.fabric_policies)
Section titled “pod_policies (apic.fabric_policies)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| date_time_policies | List | [date_time_policies] | No |
date_time_policies (apic.fabric_policies.pod_policies)
Section titled “date_time_policies (apic.fabric_policies.pod_policies)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| name | String | Regex: ^[a-zA-Z0-9_.:-]{1,64}$ | No | |
| ntp_admin_state | Boolean | true, false | No | true |
| ntp_auth_state | Boolean | true, false | No | false |
| apic_ntp_server_state | Boolean | true, false | No | false |
| apic_ntp_server_master_mode | Boolean | true, false | No | false |
| apic_ntp_server_master_stratum | Integer | min: 1, max: 14 | No | 8 |
| ntp_servers | List | [ntp_servers] | No | |
| ntp_keys | List | [ntp_keys] | No |
ntp_servers (apic.fabric_policies.pod_policies.date_time_policies)
Section titled “ntp_servers (apic.fabric_policies.pod_policies.date_time_policies)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| hostname_ip | Any | String[Regex: ^[a-zA-Z0-9:][a-zA-Z0-9.:-]{0,254}$] or IP | Yes | |
| auth_key_id | Integer | min: 1, max: 65535 | No | |
| preferred | Boolean | true, false | No | true |
| mgmt_epg | Choice | inb, oob | No | inb |
ntp_keys (apic.fabric_policies.pod_policies.date_time_policies)
Section titled “ntp_keys (apic.fabric_policies.pod_policies.date_time_policies)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| id | Integer | min: 1, max: 65535 | Yes | |
| key | String | min: 0, max: 40 | Yes | |
| auth_type | Choice | md5, sha1 | Yes | |
| trusted | Boolean | true, false | Yes |
Examples
Section titled “Examples”Simple example:
apic: fabric_policies: pod_policies: date_time_policies: - name: NTP1 ntp_servers: - hostname_ip: 1.1.1.13Full 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: falseLocation in GUI: Fabric » Fabric Policies » Fabric Policies » Policies » Pod » Date and Time
Diagram
Section titled “Diagram”Classes
Section titled “Classes”pod_policies (apic.fabric_policies)
Section titled “pod_policies (apic.fabric_policies)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| date_time_policies | List | [date_time_policies] | No |
date_time_policies (apic.fabric_policies.pod_policies)
Section titled “date_time_policies (apic.fabric_policies.pod_policies)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| name | String | Regex: ^[a-zA-Z0-9_.:-]{1,64}$ | No | |
| ntp_admin_state | Boolean | No | true | |
| ntp_auth_state | Boolean | No | false | |
| apic_ntp_server_state | Boolean | No | false | |
| apic_ntp_server_master_mode | Boolean | No | false | |
| apic_ntp_server_master_stratum | Integer | min: 1, max: 14 | No | 8 |
| ntp_servers | List | [ntp_servers] | No | |
| ntp_keys | List | [ntp_keys] | No |
ntp_servers (apic.fabric_policies.pod_policies.date_time_policies)
Section titled “ntp_servers (apic.fabric_policies.pod_policies.date_time_policies)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| hostname_ip | Any | String[Regex: ^[a-zA-Z0-9:][a-zA-Z0-9.:-]{0,254}$] or IP | Yes | |
| auth_key_id | Integer | min: 1, max: 65535 | No | |
| preferred | Boolean | No | true | |
| mgmt_epg | Choice | inb, oob | No | inb |
ntp_keys (apic.fabric_policies.pod_policies.date_time_policies)
Section titled “ntp_keys (apic.fabric_policies.pod_policies.date_time_policies)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| id | Integer | min: 1, max: 65535 | Yes | |
| key | String | min: 0, max: 40 | Yes | |
| auth_type | Choice | md5, sha1 | Yes | |
| trusted | Boolean | Yes |
Examples
Section titled “Examples”Simple example:
apic: fabric_policies: pod_policies: date_time_policies: - name: NTP1 ntp_servers: - hostname_ip: 1.1.1.13Full 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