Skip to content

Commit 1b9c4a6

Browse files
authored
Fix minigraph_dpg_asic template for Chassis LCs (#16464)
Fixes # [(issue)]#16463 Signed-off-by: Anand Mehra [email protected]
1 parent 35f5d8b commit 1b9c4a6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ansible/templates/minigraph_dpg_asic.j2

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,10 @@
193193
{% for neigh_asic in asic_config['neigh_asic'] %}
194194
{% set neigh_asic_index = neigh_asic.split('ASIC')[1]|int %}
195195
{% set po_intf = 'PortChannel' + port_channel_id(asic_index, neigh_asic_index).zfill(2) %}
196-
{{- internal_static_routes_ipv4_device_pair.append(po_intf + ',' + asic_config['neigh_asic'][neigh_asic]['bgp_ipv4'][0]) -}}
197-
{{- internal_static_routes_ipv6_device_pair.append(po_intf + ',' + asic_config['neigh_asic'][neigh_asic]['bgp_ipv6'][0]) -}}
196+
{% for intf_index in range(asic_config['neigh_asic'][neigh_asic]['bgp_ipv4'][0]|length) %}
197+
{{- internal_static_routes_ipv4_device_pair.append(po_intf + ',' + asic_config['neigh_asic'][neigh_asic]['bgp_ipv4'][0][intf_index]) -}}
198+
{{- internal_static_routes_ipv6_device_pair.append(po_intf + ',' + asic_config['neigh_asic'][neigh_asic]['bgp_ipv6'][0][intf_index]) -}}
199+
{% endfor %}
198200
{% endfor %}
199201
<IPNextHop>
200202
<ElementType>IPNextHop</ElementType>

0 commit comments

Comments
 (0)