From 5fed8fa1c0e79c2a626dfab7266ea598dc281764 Mon Sep 17 00:00:00 2001 From: laxmikant Date: Fri, 1 Mar 2024 15:17:02 +0530 Subject: [PATCH] Correcting template, schema --- .../eos_cli_config_gen/documentation/devices/flow-tracking.md | 2 +- .../templates/documentation/flow-tracking.j2 | 4 ++-- .../roles/eos_cli_config_gen/templates/eos/flow-tracking.j2 | 2 -- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/ansible_collections/arista/avd/molecule/eos_cli_config_gen/documentation/devices/flow-tracking.md b/ansible_collections/arista/avd/molecule/eos_cli_config_gen/documentation/devices/flow-tracking.md index 25652ad2f7f..235bd1625f4 100644 --- a/ansible_collections/arista/avd/molecule/eos_cli_config_gen/documentation/devices/flow-tracking.md +++ b/ansible_collections/arista/avd/molecule/eos_cli_config_gen/documentation/devices/flow-tracking.md @@ -90,7 +90,7 @@ interface Management1 | Record | Value | | ------ | ----- | -| Record format ipfix standard timestamps counters | True | +| Format ipfix standard timestamps counters | True | #### Flow Tracking Device Configuration diff --git a/ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/documentation/flow-tracking.j2 b/ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/documentation/flow-tracking.j2 index d880ac61575..cebe1495de1 100644 --- a/ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/documentation/flow-tracking.j2 +++ b/ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/documentation/flow-tracking.j2 @@ -148,14 +148,14 @@ {% endfor %} {% endif %} {% endif %} -{% if flow_tracking.hardware.record.format_ipfix_standard_timestamps_counters is arista.avd.defined(true) %} +{% if flow_tracking.hardware.record is arista.avd.defined %} ##### Records Summary | Record | Value | | ------ | ----- | {% if flow_tracking.hardware.record.format_ipfix_standard_timestamps_counters is arista.avd.defined(true) %} -| Record format ipfix standard timestamps counters | {{ flow_tracking.hardware.record.format_ipfix_standard_timestamps_counters }} | +| Format ipfix standard timestamps counters | {{ flow_tracking.hardware.record.format_ipfix_standard_timestamps_counters }} | {% endif %} {% endif %} diff --git a/ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/eos/flow-tracking.j2 b/ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/eos/flow-tracking.j2 index b9efd76ddf4..7e1f1786e72 100644 --- a/ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/eos/flow-tracking.j2 +++ b/ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/eos/flow-tracking.j2 @@ -117,9 +117,7 @@ flow tracking hardware {% endif %} {% endfor %} {% if flow_tracking.hardware.record.format_ipfix_standard_timestamps_counters is arista.avd.defined(true) %} -{% if flow_tracking.hardware.record.format_ipfix_standard_timestamps_counters is arista.avd.defined(true) %} record format ipfix standard timestamps counters -{% endif %} {% endif %} {% if flow_tracking.hardware.shutdown is arista.avd.defined(false) %} no shutdown