Skip to content
Snippets Groups Projects
Commit ff533907 authored by Maximilian Wilhelm's avatar Maximilian Wilhelm
Browse files

If we are a route reflector and no ClusterID was set, use our RouterID.

parent e482bdd4
No related branches found
No related tags found
No related merge requests found
......@@ -126,6 +126,12 @@ func newPeer(c config.Peer, rib *locRIB.LocRIB, server *bgpServer) (*peer, error
routeReflectorClient: c.RouteReflectorClient,
clusterID: c.RouteReflectorClusterID,
}
// If we are a route reflector and no ClusterID was set, use our RouterID
if p.routeReflectorClient && p.clusterID == 0 {
p.clusterID = c.RouterID
}
p.fsms = append(p.fsms, NewActiveFSM2(p))
caps := make(packet.Capabilities, 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment