From 74328bf17107021422eb8e2fca42026dad76803e Mon Sep 17 00:00:00 2001 From: shivani-chourasiya Date: Fri, 25 Mar 2022 13:07:06 +0530 Subject: [PATCH] Refactor(eos_cli_config_gen): Added avd defined filter in hardware_counters.j2 --- .../templates/documentation/hardware-counters.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/documentation/hardware-counters.j2 b/ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/documentation/hardware-counters.j2 index ce335309cc4..92fa99e1539 100644 --- a/ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/documentation/hardware-counters.j2 +++ b/ansible_collections/arista/avd/roles/eos_cli_config_gen/templates/documentation/hardware-counters.j2 @@ -8,8 +8,8 @@ | Feature | Flow Direction | | ------- | -------------- | -{% if hardware_counters is defined and hardware_counters is not none %} -{% if hardware_counters.features is defined and hardware_counters.features is not none %} +{% if hardware_counters is arista.avd.defined %} +{% if hardware_counters.features is arista.avd.defined %} {% for feature in hardware_counters.features %} {% for feature, direction in feature.items() %} | {{ feature }} | {{ direction }} |