summaryrefslogtreecommitdiffhomepage
path: root/server/peer.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-05-19 06:35:01 +0000
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-05-21 07:45:12 +0900
commitc7e1f88da3b73fbf6dc641581b6249830071a50e (patch)
tree8f2c0f4e13be6b622959fc5a16e95b8c8b2d3111 /server/peer.go
parentd22476cb3175ab02730ce1db7d8c9b515460e5a7 (diff)
cli: include route-reflector/route-server infomation in Peer message
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'server/peer.go')
-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,
}
}