[lldp] No need to config on port with no minigraph_neighbor, such as port in vlan (#864)

This commit is contained in:
Qi Luo 2017-08-02 20:28:00 -07:00 committed by GitHub
parent b6efe438b5
commit e1f2a2dd75

View File

@ -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 %}