aruba: remove unused lldp_enabled variable

This commit is contained in:
jeltz 2022-09-05 09:17:53 +02:00
parent fa96466116
commit c070990b0c
Signed by: jeltz
GPG key ID: 800882B66C0C3326

View file

@ -37,17 +37,13 @@ no cdp run
lldp run lldp run
{% {%
set lldp_enabled = set lldp_disabled =
aruba__interfaces aruba__interfaces.keys()
| difference(aruba__interfaces
| dict2items | dict2items
| selectattr("value.lldp", "defined") | selectattr("value.lldp", "defined")
| selectattr("value.lldp", "==", True) | selectattr("value.lldp", "==", True)
| map(attribute="key") | map(attribute="key"))
%}
{%
set lldp_disabled =
aruba__interfaces.keys()
| difference(lldp_enabled)
| list | list
%} %}
{% if lldp_disabled %} {% if lldp_disabled %}