summaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/peer.go15
1 files changed, 12 insertions, 3 deletions
diff --git a/server/peer.go b/server/peer.go
index 4ed46bbf..e8890bc2 100644
--- a/server/peer.go
+++ b/server/peer.go
@@ -480,11 +480,20 @@ func (peer *Peer) ToApiStruct() *api.Peer {
Accepted: accepted,
Advertised: advertised,
}
+ rr := &api.RouteReflector{
+ RouteReflectorClient: peer.fsm.pConf.RouteReflector.Config.RouteReflectorClient,
+ RouteReflectorClusterId: string(peer.fsm.pConf.RouteReflector.Config.RouteReflectorClusterId),
+ }
+ rs := &api.RouteServer{
+ RouteServerClient: peer.fsm.pConf.RouteServer.Config.RouteServerClient,
+ }
return &api.Peer{
- Conf: conf,
- Info: info,
- Timers: apitimer,
+ Conf: conf,
+ Info: info,
+ Timers: apitimer,
+ RouteReflector: rr,
+ RouteServer: rs,
}
}