From 987cf1a0d62ae70fb2ff73b9686ddd60a4f8c178 Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Thu, 20 Jul 2023 08:59:40 +0000 Subject: T5373: LLDP is running even with disable option bug Fix template do not add interfaces with 'disable' option to the lldp.conf --- data/templates/lldp/vyos.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 %} -- cgit v1.2.3