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 (#2522)

Signed-off-by: Nadiya.Stetskovych <[email protected]>
  • Loading branch information
NStetskovych-zz authored and lguohan committed Feb 5, 2019
1 parent 1cc6afc commit bb5a171
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 @@ -40,7 +40,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 bb5a171

Please sign in to comment.