Skip to content

Commit

Permalink
fix RR cluster-id
Browse files Browse the repository at this point in the history
  • Loading branch information
corestate55 committed Nov 1, 2024
1 parent f3ba71c commit 33ff396
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ def add_bgp_proc_tp(bgp_proc_node, tp_name, local_ip, remote_ip, support_layer3_
bgp_proc_tp = bgp_proc_node.term_point(tp_name)
bgp_proc_tp.attribute = bgp_proc_tp_ibgp_attribute(local_ip, remote_ip)
# NOTE: when region-as, core-router is route-reflector
bgp_proc_tp.attribute[:route_reflector_client] = true if region_as_params? && core_router?(bgp_proc_node)
if region_as_params? && core_router?(bgp_proc_node)
bgp_proc_tp.attribute[:route_reflector_client] = true
bgp_proc_tp.attribute[:cluster_id] = bgp_proc_node.attribute[:router_id]
end
bgp_proc_tp.supports.push([@layer3_nw.name, support_layer3_edge[:node].name, support_layer3_edge[:tp].name])

[bgp_proc_node, bgp_proc_tp]
Expand Down

0 comments on commit 33ff396

Please sign in to comment.