diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-08-26 18:15:03 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-08-26 18:15:03 +0900 |
commit | eef1fc0a7529a2ee12c822af1b393906cd114ef9 (patch) | |
tree | d3ea1183f2f3d162b59b0c3197a8969dbcd6aaf6 /api | |
parent | 982a5b448f5ba99033911cdcaeebeeb8c2ed81fa (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')
-rw-r--r-- | api/grpc_server.go | 2 |
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()), |