From e1f2a2dd75b5a83f83d2d72c9f4fa8b02cbca95a Mon Sep 17 00:00:00 2001 From: Qi Luo Date: Wed, 2 Aug 2017 20:28:00 -0700 Subject: [PATCH] [lldp] No need to config on port with no minigraph_neighbor, such as port in vlan (#864) --- dockers/docker-lldp-sv2/lldpd.conf.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dockers/docker-lldp-sv2/lldpd.conf.j2 b/dockers/docker-lldp-sv2/lldpd.conf.j2 index e3d37d0911..4cfe48065e 100644 --- a/dockers/docker-lldp-sv2/lldpd.conf.j2 +++ b/dockers/docker-lldp-sv2/lldpd.conf.j2 @@ -1,3 +1,5 @@ {% for member in minigraph_ports.keys() %} +{% if member in minigraph_neighbors %} configure ports {{ member }} lldp portidsubtype local {{ minigraph_ports[member]['alias'] }} description {{ minigraph_neighbors[member]['name'] }}:{{ minigraph_neighbors[member]['port'] }} +{% endif %} {% endfor %}