Skip to content

Commit

Permalink
Improve check condition
Browse files Browse the repository at this point in the history
Signed-off-by: Longxiang Lyu <[email protected]>
  • Loading branch information
lolyu committed Jan 16, 2024
1 parent 17bb4e5 commit a2ebfc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dockers/docker-fpm-frr/frr/zebra/zebra.interfaces.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ interface {{ pc }}
link-detect
!
{% endfor %}
{% if "subtype" in DEVICE_METADATA['localhost'] and DEVICE_METADATA['localhost']["subtype"] == "DualToR" %}
{% if (DEVICE_METADATA is defined) and ('localhost' in DEVICE_METADATA) and ('subtype' in DEVICE_METADATA['localhost']) and (DEVICE_METADATA['localhost']['subtype'].lower() == 'dualtor') %}
! Disable link-detect on VLAN interfaces for dualtor
{% for (name, prefix) in VLAN_INTERFACE|pfx_filter|unique(attribute=0) %}
interface {{ name }}
Expand Down

0 comments on commit a2ebfc8

Please sign in to comment.