summaryrefslogtreecommitdiffhomepage
path: root/api/grpc_server.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-08-26 18:15:03 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-08-26 18:15:03 +0900
commiteef1fc0a7529a2ee12c822af1b393906cd114ef9 (patch)
treed3ea1183f2f3d162b59b0c3197a8969dbcd6aaf6 /api/grpc_server.go
parent982a5b448f5ba99033911cdcaeebeeb8c2ed81fa (diff)
add RemoteRouterId to config.NeighborState
Stop using config.NeighborState's Description in a hacky way for the remote Router Id. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'api/grpc_server.go')
-rw-r--r--api/grpc_server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/grpc_server.go b/api/grpc_server.go
index e429e456..43960620 100644
--- a/api/grpc_server.go
+++ b/api/grpc_server.go
@@ -107,7 +107,7 @@ func (s *Server) GetNeighbor(ctx context.Context, arg *GetNeighborRequest) (*Get
return &Peer{
Conf: &PeerConf{
NeighborAddress: pconf.Config.NeighborAddress,
- Id: s.Description,
+ Id: s.RemoteRouterId,
PeerAs: pconf.Config.PeerAs,
LocalAs: pconf.Config.LocalAs,
PeerType: uint32(pconf.Config.PeerType.ToInt()),