Skip to content

Commit 43e9e75

Browse files
committed
Fix vPC peering default payload
Always render `useVirtualPeerlink` in `ndfc_vpc_peering_pairs.j2`, defaulting to `false` when `fabric_peering` is omitted. Previously, omitted `fabric_peering` caused the field to be dropped from the generated payload. In a fresh fabric, this can result in the vPC pair not being created/recognized by NDFC; later `dcnm_interface` fails when creating vPC interfaces with: Switch '<ip>' is not part of VPC pair, but given I/F 'vpc<N>' is of type VPC This aligns the template with the documented `dcnm_vpc_pair` default and existing validation behavior, both of which treat omitted `fabric_peering` as `false`.
1 parent c24dda0 commit 43e9e75

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

roles/dtc/common/templates/ndfc_vpc/ndfc_vpc_peering_pairs.j2

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
{% for vpc_peers_pair in data_model_extended.vxlan.topology.vpc_peers %}
77
- peerOneId: {{ vpc_peers_pair.peer1_mgmt_ip_address }}
88
peerTwoId: {{ vpc_peers_pair.peer2_mgmt_ip_address }}
9-
{% if vpc_peers_pair.fabric_peering is defined %}
10-
useVirtualPeerlink: {{ vpc_peers_pair.fabric_peering }}
11-
{% endif %}
9+
useVirtualPeerlink: {{ vpc_peers_pair.fabric_peering | default(false) }}
1210
{% endfor %}
1311
{% endif %}

0 commit comments

Comments
 (0)