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 %}