summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2023-07-20 08:59:40 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2023-07-20 08:59:40 +0000
commit987cf1a0d62ae70fb2ff73b9686ddd60a4f8c178 (patch)
treef4ce8eef6a6fd03b1ad441488f1ba812b2a2209b /data
parentd2540ac4c6fc05991b18cf0e2434fbb6d5f3c2cf (diff)
downloadvyos-1x-987cf1a0d62ae70fb2ff73b9686ddd60a4f8c178.tar.gz
vyos-1x-987cf1a0d62ae70fb2ff73b9686ddd60a4f8c178.zip
T5373: LLDP is running even with disable option bug
Fix template do not add interfaces with 'disable' option to the lldp.conf
Diffstat (limited to 'data')
-rw-r--r--data/templates/lldp/vyos.conf.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/lldp/vyos.conf.j2 b/data/templates/lldp/vyos.conf.j2
index ec84231d8..dfa422ab8 100644
--- a/data/templates/lldp/vyos.conf.j2
+++ b/data/templates/lldp/vyos.conf.j2
@@ -4,7 +4,7 @@ configure system platform VyOS
configure system description "VyOS {{ version }}"
{% if interface is vyos_defined %}
{% set tmp = [] %}
-{% for iface, iface_options in interface.items() if not iface_options.disable %}
+{% for iface, iface_options in interface.items() if iface_options.disable is not vyos_defined %}
{% if iface == 'all' %}
{% set iface = '*' %}
{% endif %}