aruba: remove unused lldp_enabled variable
This commit is contained in:
parent
fa96466116
commit
c070990b0c
1 changed files with 5 additions and 9 deletions
|
@ -36,18 +36,14 @@ snmpv3 user "re2o"
|
||||||
no cdp run
|
no cdp run
|
||||||
lldp run
|
lldp run
|
||||||
|
|
||||||
{%
|
|
||||||
set lldp_enabled =
|
|
||||||
aruba__interfaces
|
|
||||||
| dict2items
|
|
||||||
| selectattr("value.lldp", "defined")
|
|
||||||
| selectattr("value.lldp", "==", True)
|
|
||||||
| map(attribute="key")
|
|
||||||
%}
|
|
||||||
{%
|
{%
|
||||||
set lldp_disabled =
|
set lldp_disabled =
|
||||||
aruba__interfaces.keys()
|
aruba__interfaces.keys()
|
||||||
| difference(lldp_enabled)
|
| difference(aruba__interfaces
|
||||||
|
| dict2items
|
||||||
|
| selectattr("value.lldp", "defined")
|
||||||
|
| selectattr("value.lldp", "==", True)
|
||||||
|
| map(attribute="key"))
|
||||||
| list
|
| list
|
||||||
%}
|
%}
|
||||||
{% if lldp_disabled %}
|
{% if lldp_disabled %}
|
||||||
|
|
Loading…
Reference in a new issue