Skip to content

Commit 4d6b7fa

Browse files
authored
Fixes regression in BGP route reflector functionality. (cloudnativelabs#573)
Use proper conversion so correct cluster ID is passed to GoBGP library
1 parent cf9bf47 commit 4d6b7fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/controllers/routing/bgp_peers.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,11 @@ func (nrc *NetworkRoutingController) syncInternalPeers() {
130130
n.RouteReflector = config.RouteReflector{
131131
Config: config.RouteReflectorConfig{
132132
RouteReflectorClient: true,
133-
RouteReflectorClusterId: config.RrClusterIdType(nrc.bgpClusterID),
133+
RouteReflectorClusterId: config.RrClusterIdType(fmt.Sprint(nrc.bgpClusterID)),
134134
},
135135
State: config.RouteReflectorState{
136136
RouteReflectorClient: true,
137-
RouteReflectorClusterId: config.RrClusterIdType(nrc.bgpClusterID),
137+
RouteReflectorClusterId: config.RrClusterIdType(fmt.Sprint(nrc.bgpClusterID)),
138138
},
139139
}
140140
}

0 commit comments

Comments
 (0)