summaryrefslogtreecommitdiffhomepage
path: root/api/grpc_server.go
diff options
context:
space:
mode:
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 7fe72c35..d4fb4674 100644
--- a/api/grpc_server.go
+++ b/api/grpc_server.go
@@ -230,7 +230,7 @@ func (s *Server) GetNeighbor(ctx context.Context, arg *GetNeighborRequest) (*Get
return nil, fmt.Errorf("invalid request")
}
p := []*Peer{}
- for _, e := range s.bgpServer.GetNeighbor(arg.EnableAdvertised) {
+ for _, e := range s.bgpServer.GetNeighbor(arg.Address, arg.EnableAdvertised) {
p = append(p, NewPeerFromConfigStruct(e))
}
return &GetNeighborResponse{Peers: p}, nil