Skip to content

Commit 24b4795

Browse files
authored
Update ndfc_edge_connections.j2
1 parent 4d37d34 commit 24b4795

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

roles/dtc/common/templates/ndfc_edge_connections.j2

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,12 @@
1717
description: {{ 'nace_bgp_peer_template_dci_underlay_jython_' + link.source_device + '_' + link.source_interface + '_' + link.dest_device }}
1818
name: bgp_peer_template_dci_underlay_jython
1919
policy_vars:
20-
BGP_PASSWORD: "{{ link.bgp_section.bgp_password | default('') }}"
21-
BGP_PASSWORD_ENABLE: {{ link.bgp_section.bgp_password_enable | default(defaults.vxlan.topology.edge_connections.bgp_section.bgp_password_enable) }}
20+
{% if link.bgp_section is defined and link.bgp_section.bgp_password is defined and link.bgp_section.bgp_password is not none and link.bgp_section.bgp_password | length > 0 %}
21+
BGP_PASSWORD_ENABLE: true
22+
BGP_PASSWORD: "{{ link.bgp_section.bgp_password }}"
23+
{% else %}
24+
BGP_PASSWORD_ENABLE: false
25+
{% endif %}
2226
TEMPLATE_NAME: {{ data_model_extended.vxlan.fabric.name + '-' + link.dest_fabric + '-IPV4-EBGP' }}
2327
NEIGHBOR_ASN: "{{ link.bgp_section.neighbor_asn }}"
2428
OVERRIDE_LOCAL_ASN: false

0 commit comments

Comments
 (0)