Skip to content

Commit

Permalink
[minigraph]: Do not fail for minigraphs which do not have neighbors l…
Browse files Browse the repository at this point in the history
…isted in <Devices> section (sonic-net#2522)

Signed-off-by: Nadiya.Stetskovych <nstetskovych@barefootnetworks.com>
  • Loading branch information
NStetskovych-zz authored and tiantianlv committed Apr 10, 2019
1 parent 26b678f commit 9028550
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/build_templates/buffers_config.j2
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def
{%- set cable_len = [] %}
{%- for local_port in DEVICE_NEIGHBOR %}
{%- if local_port == port_name %}
{%- if DEVICE_NEIGHBOR_METADATA[DEVICE_NEIGHBOR[local_port].name] %}
{%- if DEVICE_NEIGHBOR_METADATA is defined and DEVICE_NEIGHBOR_METADATA[DEVICE_NEIGHBOR[local_port].name] %}
{%- set neighbor = DEVICE_NEIGHBOR_METADATA[DEVICE_NEIGHBOR[local_port].name] %}
{%- set neighbor_role = neighbor.type %}
{%- set roles1 = switch_role + '_' + neighbor_role %}
Expand Down

0 comments on commit 9028550

Please sign in to comment.