From c070990b0c225b0f3024aa996aee0ae38a988502 Mon Sep 17 00:00:00 2001 From: Jeltz Date: Mon, 5 Sep 2022 09:17:53 +0200 Subject: [PATCH] aruba: remove unused lldp_enabled variable --- roles/aruba/templates/config.j2 | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/roles/aruba/templates/config.j2 b/roles/aruba/templates/config.j2 index 86a2e97..b273757 100644 --- a/roles/aruba/templates/config.j2 +++ b/roles/aruba/templates/config.j2 @@ -36,18 +36,14 @@ snmpv3 user "re2o" no cdp run lldp run -{% -set lldp_enabled = - aruba__interfaces - | dict2items - | selectattr("value.lldp", "defined") - | selectattr("value.lldp", "==", True) - | map(attribute="key") -%} {% set lldp_disabled = aruba__interfaces.keys() - | difference(lldp_enabled) + | difference(aruba__interfaces + | dict2items + | selectattr("value.lldp", "defined") + | selectattr("value.lldp", "==", True) + | map(attribute="key")) | list %} {% if lldp_disabled %}