We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26b678f commit 9028550Copy full SHA for 9028550
files/build_templates/buffers_config.j2
@@ -44,7 +44,7 @@ def
44
{%- set cable_len = [] %}
45
{%- for local_port in DEVICE_NEIGHBOR %}
46
{%- if local_port == port_name %}
47
- {%- if DEVICE_NEIGHBOR_METADATA[DEVICE_NEIGHBOR[local_port].name] %}
+ {%- if DEVICE_NEIGHBOR_METADATA is defined and DEVICE_NEIGHBOR_METADATA[DEVICE_NEIGHBOR[local_port].name] %}
48
{%- set neighbor = DEVICE_NEIGHBOR_METADATA[DEVICE_NEIGHBOR[local_port].name] %}
49
{%- set neighbor_role = neighbor.type %}
50
{%- set roles1 = switch_role + '_' + neighbor_role %}
0 commit comments