From 6aa6aa092825cb2789d39a5efb7a5926ae455170 Mon Sep 17 00:00:00 2001 From: Nico Weibezahl Date: Wed, 17 Nov 2021 18:15:20 +0100 Subject: [PATCH 1/5] Doc(eos_cli_config_gen): Add Documentation for Clock Timezone --- .../documentation/devices/clock-timezone.md | 106 ++++++++++++++++++ .../intended/configs/clock-timezone.cfg | 17 +++ .../inventory/host_vars/clock-timezone.yml | 2 + .../eos_cli_config_gen/inventory/hosts.ini | 1 + .../templates/documentation/clock-timezone.j2 | 17 +++ .../templates/eos-device-documentation.j2 | 2 + 6 files changed, 145 insertions(+) create mode 100644 ansible_collections/arista/avd/molecule/eos_cli_config_gen/documentation/devices/clock-timezone.md create mode 100644 ansible_collections/arista/avd/molecule/eos_cli_config_gen/intended/configs/clock-timezone.cfg create mode 100644 ansible_collections/arista/avd/molecule/eos_cli_config_gen/inventory/host_vars/clock-timezone.yml create mode 100644 ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/documentation/clock-timezone.j2 diff --git a/ansible_collections/arista/avd/molecule/eos_cli_config_gen/documentation/devices/clock-timezone.md b/ansible_collections/arista/avd/molecule/eos_cli_config_gen/documentation/devices/clock-timezone.md new file mode 100644 index 00000000000..323624244cc --- /dev/null +++ b/ansible_collections/arista/avd/molecule/eos_cli_config_gen/documentation/devices/clock-timezone.md @@ -0,0 +1,106 @@ +# clock-timezone +# Table of Contents + + +- [Management](#management) + - [Management Interfaces](#management-interfaces) + - [Clock Settings](#clock-settings) +- [Authentication](#authentication) +- [Monitoring](#monitoring) +- [Internal VLAN Allocation Policy](#internal-vlan-allocation-policy) + - [Internal VLAN Allocation Policy Summary](#internal-vlan-allocation-policy-summary) +- [Interfaces](#interfaces) +- [Routing](#routing) + - [IP Routing](#ip-routing) + - [IPv6 Routing](#ipv6-routing) +- [Multicast](#multicast) +- [Filters](#filters) +- [ACL](#acl) +- [Quality Of Service](#quality-of-service) + + +# Management + +## Management Interfaces + +### Management Interfaces Summary + +#### IPv4 + +| Management Interface | description | Type | VRF | IP Address | Gateway | +| -------------------- | ----------- | ---- | --- | ---------- | ------- | +| Management1 | oob_management | oob | MGMT | 10.73.255.122/24 | 10.73.255.2 | + +#### IPv6 + +| Management Interface | description | Type | VRF | IPv6 Address | IPv6 Gateway | +| -------------------- | ----------- | ---- | --- | ------------ | ------------ | +| Management1 | oob_management | oob | MGMT | - | - | + +### Management Interfaces Device Configuration + +```eos +! +interface Management1 + description oob_management + vrf MGMT + ip address 10.73.255.122/24 +``` + +## Clock Settings + +### Clock Timezone Settings + +Clock Timezone is set to **GMT**. + +### Clock Configuration + +```eos +! +clock timezone GMT +``` + +# Authentication + +# Monitoring + +# Internal VLAN Allocation Policy + +## Internal VLAN Allocation Policy Summary + +**Default Allocation Policy** + +| Policy Allocation | Range Beginning | Range Ending | +| ------------------| --------------- | ------------ | +| ascending | 1006 | 4094 | + +# Interfaces + +# Routing + +## IP Routing + +### IP Routing Summary + +| VRF | Routing Enabled | +| --- | --------------- | +| default | false| +### IP Routing Device Configuration + +```eos +``` +## IPv6 Routing + +### IPv6 Routing Summary + +| VRF | Routing Enabled | +| --- | --------------- | +| default | false | + +# Multicast + +# Filters + +# ACL + +# Quality Of Service diff --git a/ansible_collections/arista/avd/molecule/eos_cli_config_gen/intended/configs/clock-timezone.cfg b/ansible_collections/arista/avd/molecule/eos_cli_config_gen/intended/configs/clock-timezone.cfg new file mode 100644 index 00000000000..67659e56973 --- /dev/null +++ b/ansible_collections/arista/avd/molecule/eos_cli_config_gen/intended/configs/clock-timezone.cfg @@ -0,0 +1,17 @@ +!RANCID-CONTENT-TYPE: arista +! +transceiver qsfp default-mode 4x10G +! +hostname clock-timezone +! +no aaa root +no enable password +! +clock timezone GMT +! +interface Management1 + description oob_management + vrf MGMT + ip address 10.73.255.122/24 +! +end diff --git a/ansible_collections/arista/avd/molecule/eos_cli_config_gen/inventory/host_vars/clock-timezone.yml b/ansible_collections/arista/avd/molecule/eos_cli_config_gen/inventory/host_vars/clock-timezone.yml new file mode 100644 index 00000000000..1e1995b0cc9 --- /dev/null +++ b/ansible_collections/arista/avd/molecule/eos_cli_config_gen/inventory/host_vars/clock-timezone.yml @@ -0,0 +1,2 @@ +clock: + timezone: GMT \ No newline at end of file diff --git a/ansible_collections/arista/avd/molecule/eos_cli_config_gen/inventory/hosts.ini b/ansible_collections/arista/avd/molecule/eos_cli_config_gen/inventory/hosts.ini index 407347fa9ed..4407d368a23 100644 --- a/ansible_collections/arista/avd/molecule/eos_cli_config_gen/inventory/hosts.ini +++ b/ansible_collections/arista/avd/molecule/eos_cli_config_gen/inventory/hosts.ini @@ -6,6 +6,7 @@ aliases arp base class-maps +clock-timezone daemon_terminattr daemons dns-ntp diff --git a/ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/documentation/clock-timezone.j2 b/ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/documentation/clock-timezone.j2 new file mode 100644 index 00000000000..cc9cf32eecd --- /dev/null +++ b/ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/documentation/clock-timezone.j2 @@ -0,0 +1,17 @@ +{# Clock Timezone #} +{% if clock is arista.avd.defined %} + +## Clock Settings +{% if clock.timezone is arista.avd.defined %} + +### Clock Timezone Settings + +Clock Timezone is set to **{{ clock.timezone }}**. +{% endif %} + +### Clock Configuration + +```eos +{% include 'eos/clock-timezone.j2' %} +``` +{% endif %} diff --git a/ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/eos-device-documentation.j2 b/ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/eos-device-documentation.j2 index 78c0f933aca..7848db2afb4 100644 --- a/ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/eos-device-documentation.j2 +++ b/ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/eos-device-documentation.j2 @@ -13,6 +13,8 @@ {% include 'documentation/name-servers.j2' %} {## Domain Lookup #} {% include 'documentation/domain-lookup.j2' %} +{# Clock Timezone #} +{% include 'documentation/clock-timezone.j2' %} {## NTP #} {% include 'documentation/ntp.j2' %} {## PTP #} From 60ff42615d0594371f03f1b7f743a558ad5f3b4b Mon Sep 17 00:00:00 2001 From: Nico Weibezahl Date: Wed, 17 Nov 2021 18:28:44 +0100 Subject: [PATCH 2/5] Doc(eos_cli_config_gen): Add Documentation for Clock Timezone --- .../eos_cli_config_gen/inventory/host_vars/clock-timezone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible_collections/arista/avd/molecule/eos_cli_config_gen/inventory/host_vars/clock-timezone.yml b/ansible_collections/arista/avd/molecule/eos_cli_config_gen/inventory/host_vars/clock-timezone.yml index 1e1995b0cc9..c54a19d2557 100644 --- a/ansible_collections/arista/avd/molecule/eos_cli_config_gen/inventory/host_vars/clock-timezone.yml +++ b/ansible_collections/arista/avd/molecule/eos_cli_config_gen/inventory/host_vars/clock-timezone.yml @@ -1,2 +1,2 @@ clock: - timezone: GMT \ No newline at end of file + timezone: GMT From 7a10f0c30bf8fa5b42c13e67e5b4525a544a379d Mon Sep 17 00:00:00 2001 From: Nico Weibezahl Date: Thu, 18 Nov 2021 13:25:34 +0100 Subject: [PATCH 3/5] Doc(eos_cli_config_gen): Add Documentation for Clock Timezone --- .../documentation/devices/clock.md | 106 ++++++++++++++++++ .../intended/configs/clock.cfg | 17 +++ .../{clock-timezone.yml => clock.yml} | 0 .../eos_cli_config_gen/inventory/hosts.ini | 2 +- .../avd/roles/eos_cli_config_gen/README.md | 2 +- .../{clock-timezone.j2 => clock.j2} | 4 +- .../templates/eos-device-documentation.j2 | 4 +- .../templates/eos-intended-config.j2 | 4 +- .../eos/{clock-timezone.j2 => clock.j2} | 2 +- 9 files changed, 132 insertions(+), 9 deletions(-) create mode 100644 ansible_collections/arista/avd/molecule/eos_cli_config_gen/documentation/devices/clock.md create mode 100644 ansible_collections/arista/avd/molecule/eos_cli_config_gen/intended/configs/clock.cfg rename ansible_collections/arista/avd/molecule/eos_cli_config_gen/inventory/host_vars/{clock-timezone.yml => clock.yml} (100%) rename ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/documentation/{clock-timezone.j2 => clock.j2} (80%) rename ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/eos/{clock-timezone.j2 => clock.j2} (85%) diff --git a/ansible_collections/arista/avd/molecule/eos_cli_config_gen/documentation/devices/clock.md b/ansible_collections/arista/avd/molecule/eos_cli_config_gen/documentation/devices/clock.md new file mode 100644 index 00000000000..dcdd952a7eb --- /dev/null +++ b/ansible_collections/arista/avd/molecule/eos_cli_config_gen/documentation/devices/clock.md @@ -0,0 +1,106 @@ +# clock +# Table of Contents + + +- [Management](#management) + - [Management Interfaces](#management-interfaces) + - [Clock Settings](#clock-settings) +- [Authentication](#authentication) +- [Monitoring](#monitoring) +- [Internal VLAN Allocation Policy](#internal-vlan-allocation-policy) + - [Internal VLAN Allocation Policy Summary](#internal-vlan-allocation-policy-summary) +- [Interfaces](#interfaces) +- [Routing](#routing) + - [IP Routing](#ip-routing) + - [IPv6 Routing](#ipv6-routing) +- [Multicast](#multicast) +- [Filters](#filters) +- [ACL](#acl) +- [Quality Of Service](#quality-of-service) + + +# Management + +## Management Interfaces + +### Management Interfaces Summary + +#### IPv4 + +| Management Interface | description | Type | VRF | IP Address | Gateway | +| -------------------- | ----------- | ---- | --- | ---------- | ------- | +| Management1 | oob_management | oob | MGMT | 10.73.255.122/24 | 10.73.255.2 | + +#### IPv6 + +| Management Interface | description | Type | VRF | IPv6 Address | IPv6 Gateway | +| -------------------- | ----------- | ---- | --- | ------------ | ------------ | +| Management1 | oob_management | oob | MGMT | - | - | + +### Management Interfaces Device Configuration + +```eos +! +interface Management1 + description oob_management + vrf MGMT + ip address 10.73.255.122/24 +``` + +## Clock Settings + +### Clock Timezone Settings + +Clock Timezone is set to **GMT**. + +### Clock Configuration + +```eos +! +clock timezone GMT +``` + +# Authentication + +# Monitoring + +# Internal VLAN Allocation Policy + +## Internal VLAN Allocation Policy Summary + +**Default Allocation Policy** + +| Policy Allocation | Range Beginning | Range Ending | +| ------------------| --------------- | ------------ | +| ascending | 1006 | 4094 | + +# Interfaces + +# Routing + +## IP Routing + +### IP Routing Summary + +| VRF | Routing Enabled | +| --- | --------------- | +| default | false| +### IP Routing Device Configuration + +```eos +``` +## IPv6 Routing + +### IPv6 Routing Summary + +| VRF | Routing Enabled | +| --- | --------------- | +| default | false | + +# Multicast + +# Filters + +# ACL + +# Quality Of Service diff --git a/ansible_collections/arista/avd/molecule/eos_cli_config_gen/intended/configs/clock.cfg b/ansible_collections/arista/avd/molecule/eos_cli_config_gen/intended/configs/clock.cfg new file mode 100644 index 00000000000..c439595a0e5 --- /dev/null +++ b/ansible_collections/arista/avd/molecule/eos_cli_config_gen/intended/configs/clock.cfg @@ -0,0 +1,17 @@ +!RANCID-CONTENT-TYPE: arista +! +transceiver qsfp default-mode 4x10G +! +hostname clock +! +no aaa root +no enable password +! +clock timezone GMT +! +interface Management1 + description oob_management + vrf MGMT + ip address 10.73.255.122/24 +! +end diff --git a/ansible_collections/arista/avd/molecule/eos_cli_config_gen/inventory/host_vars/clock-timezone.yml b/ansible_collections/arista/avd/molecule/eos_cli_config_gen/inventory/host_vars/clock.yml similarity index 100% rename from ansible_collections/arista/avd/molecule/eos_cli_config_gen/inventory/host_vars/clock-timezone.yml rename to ansible_collections/arista/avd/molecule/eos_cli_config_gen/inventory/host_vars/clock.yml diff --git a/ansible_collections/arista/avd/molecule/eos_cli_config_gen/inventory/hosts.ini b/ansible_collections/arista/avd/molecule/eos_cli_config_gen/inventory/hosts.ini index 4407d368a23..139ddf628ac 100644 --- a/ansible_collections/arista/avd/molecule/eos_cli_config_gen/inventory/hosts.ini +++ b/ansible_collections/arista/avd/molecule/eos_cli_config_gen/inventory/hosts.ini @@ -6,7 +6,7 @@ aliases arp base class-maps -clock-timezone +clock daemon_terminattr daemons dns-ntp diff --git a/ansible_collections/arista/avd/roles/eos_cli_config_gen/README.md b/ansible_collections/arista/avd/roles/eos_cli_config_gen/README.md index 2a9109f35ca..d7a66f07b73 100644 --- a/ansible_collections/arista/avd/roles/eos_cli_config_gen/README.md +++ b/ansible_collections/arista/avd/roles/eos_cli_config_gen/README.md @@ -1333,7 +1333,7 @@ maintenance: ### Management -#### Clock Timezone +#### Clock ```yaml clock: diff --git a/ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/documentation/clock-timezone.j2 b/ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/documentation/clock.j2 similarity index 80% rename from ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/documentation/clock-timezone.j2 rename to ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/documentation/clock.j2 index cc9cf32eecd..86dfe02cfde 100644 --- a/ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/documentation/clock-timezone.j2 +++ b/ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/documentation/clock.j2 @@ -1,4 +1,4 @@ -{# Clock Timezone #} +{# Clock #} {% if clock is arista.avd.defined %} ## Clock Settings @@ -12,6 +12,6 @@ Clock Timezone is set to **{{ clock.timezone }}**. ### Clock Configuration ```eos -{% include 'eos/clock-timezone.j2' %} +{% include 'eos/clock.j2' %} ``` {% endif %} diff --git a/ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/eos-device-documentation.j2 b/ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/eos-device-documentation.j2 index 7848db2afb4..a0ac5fef764 100644 --- a/ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/eos-device-documentation.j2 +++ b/ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/eos-device-documentation.j2 @@ -13,8 +13,8 @@ {% include 'documentation/name-servers.j2' %} {## Domain Lookup #} {% include 'documentation/domain-lookup.j2' %} -{# Clock Timezone #} -{% include 'documentation/clock-timezone.j2' %} +{## Clock #} +{% include 'documentation/clock.j2' %} {## NTP #} {% include 'documentation/ntp.j2' %} {## PTP #} diff --git a/ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/eos-intended-config.j2 b/ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/eos-intended-config.j2 index d030fa537eb..fee9b05a739 100644 --- a/ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/eos-intended-config.j2 +++ b/ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/eos-intended-config.j2 @@ -98,8 +98,8 @@ {% include 'eos/enable-password.j2' %} {# users #} {% include 'eos/local-users.j2' %} -{# clock timezone #} -{% include 'eos/clock-timezone.j2' %} +{# clock #} +{% include 'eos/clock.j2' %} {# VLANs #} {% include 'eos/vlans.j2' %} {# VRF Instances #} diff --git a/ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/eos/clock-timezone.j2 b/ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/eos/clock.j2 similarity index 85% rename from ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/eos/clock-timezone.j2 rename to ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/eos/clock.j2 index 1b2b2fd6c95..445c3f29274 100644 --- a/ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/eos/clock-timezone.j2 +++ b/ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/eos/clock.j2 @@ -1,4 +1,4 @@ -{# eos - Clock timezone#} +{# eos - Clock #} {% if clock is arista.avd.defined %} ! {% if clock.timezone is arista.avd.defined %} From acb337d809597466ad73c1fb5b666aa59ab5ebe5 Mon Sep 17 00:00:00 2001 From: Nico Weibezahl Date: Thu, 18 Nov 2021 14:34:42 +0100 Subject: [PATCH 4/5] Doc(eos_cli_config_gen): Add Documentation for Clock Timezone --- .../documentation/devices/clock-timezone.md | 106 ------------------ .../intended/configs/clock-timezone.cfg | 17 --- 2 files changed, 123 deletions(-) delete mode 100644 ansible_collections/arista/avd/molecule/eos_cli_config_gen/documentation/devices/clock-timezone.md delete mode 100644 ansible_collections/arista/avd/molecule/eos_cli_config_gen/intended/configs/clock-timezone.cfg diff --git a/ansible_collections/arista/avd/molecule/eos_cli_config_gen/documentation/devices/clock-timezone.md b/ansible_collections/arista/avd/molecule/eos_cli_config_gen/documentation/devices/clock-timezone.md deleted file mode 100644 index 323624244cc..00000000000 --- a/ansible_collections/arista/avd/molecule/eos_cli_config_gen/documentation/devices/clock-timezone.md +++ /dev/null @@ -1,106 +0,0 @@ -# clock-timezone -# Table of Contents - - -- [Management](#management) - - [Management Interfaces](#management-interfaces) - - [Clock Settings](#clock-settings) -- [Authentication](#authentication) -- [Monitoring](#monitoring) -- [Internal VLAN Allocation Policy](#internal-vlan-allocation-policy) - - [Internal VLAN Allocation Policy Summary](#internal-vlan-allocation-policy-summary) -- [Interfaces](#interfaces) -- [Routing](#routing) - - [IP Routing](#ip-routing) - - [IPv6 Routing](#ipv6-routing) -- [Multicast](#multicast) -- [Filters](#filters) -- [ACL](#acl) -- [Quality Of Service](#quality-of-service) - - -# Management - -## Management Interfaces - -### Management Interfaces Summary - -#### IPv4 - -| Management Interface | description | Type | VRF | IP Address | Gateway | -| -------------------- | ----------- | ---- | --- | ---------- | ------- | -| Management1 | oob_management | oob | MGMT | 10.73.255.122/24 | 10.73.255.2 | - -#### IPv6 - -| Management Interface | description | Type | VRF | IPv6 Address | IPv6 Gateway | -| -------------------- | ----------- | ---- | --- | ------------ | ------------ | -| Management1 | oob_management | oob | MGMT | - | - | - -### Management Interfaces Device Configuration - -```eos -! -interface Management1 - description oob_management - vrf MGMT - ip address 10.73.255.122/24 -``` - -## Clock Settings - -### Clock Timezone Settings - -Clock Timezone is set to **GMT**. - -### Clock Configuration - -```eos -! -clock timezone GMT -``` - -# Authentication - -# Monitoring - -# Internal VLAN Allocation Policy - -## Internal VLAN Allocation Policy Summary - -**Default Allocation Policy** - -| Policy Allocation | Range Beginning | Range Ending | -| ------------------| --------------- | ------------ | -| ascending | 1006 | 4094 | - -# Interfaces - -# Routing - -## IP Routing - -### IP Routing Summary - -| VRF | Routing Enabled | -| --- | --------------- | -| default | false| -### IP Routing Device Configuration - -```eos -``` -## IPv6 Routing - -### IPv6 Routing Summary - -| VRF | Routing Enabled | -| --- | --------------- | -| default | false | - -# Multicast - -# Filters - -# ACL - -# Quality Of Service diff --git a/ansible_collections/arista/avd/molecule/eos_cli_config_gen/intended/configs/clock-timezone.cfg b/ansible_collections/arista/avd/molecule/eos_cli_config_gen/intended/configs/clock-timezone.cfg deleted file mode 100644 index 67659e56973..00000000000 --- a/ansible_collections/arista/avd/molecule/eos_cli_config_gen/intended/configs/clock-timezone.cfg +++ /dev/null @@ -1,17 +0,0 @@ -!RANCID-CONTENT-TYPE: arista -! -transceiver qsfp default-mode 4x10G -! -hostname clock-timezone -! -no aaa root -no enable password -! -clock timezone GMT -! -interface Management1 - description oob_management - vrf MGMT - ip address 10.73.255.122/24 -! -end From d7b171c515c1c9851e39959a2c728c9d12641ec2 Mon Sep 17 00:00:00 2001 From: Nico Weibezahl Date: Mon, 22 Nov 2021 16:22:02 +0100 Subject: [PATCH 5/5] Doc(eos_cli_config_gen): Add Documentation for Clock Timezone --- .../arista/avd/roles/eos_cli_config_gen/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible_collections/arista/avd/roles/eos_cli_config_gen/README.md b/ansible_collections/arista/avd/roles/eos_cli_config_gen/README.md index d884e03409e..7c73409673a 100644 --- a/ansible_collections/arista/avd/roles/eos_cli_config_gen/README.md +++ b/ansible_collections/arista/avd/roles/eos_cli_config_gen/README.md @@ -70,7 +70,7 @@ - [Interface Groups](#interface-groups) - [Profiles and units](#profiles-and-units) - [Management](#management) - - [Clock Timezone](#clock-timezone) + - [Clock](#clock) - [DNS Domain](#dns-domain) - [Domain Name Servers](#domain-name-servers) - [Domain Lookup](#domain-lookup)