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 6445c003..65ea21f9 100644
--- a/api/grpc_server.go
+++ b/api/grpc_server.go
@@ -188,7 +188,7 @@ func NewPeerFromConfigStruct(pconf *config.Neighbor) *Peer {
func (s *Server) GetNeighbor(ctx context.Context, arg *GetNeighborRequest) (*GetNeighborResponse, error) {
p := []*Peer{}
- for _, e := range s.bgpServer.GetNeighbor() {
+ for _, e := range s.bgpServer.GetNeighbor(arg.EnableAdvertised) {
p = append(p, NewPeerFromConfigStruct(e))
}
return &GetNeighborResponse{Peers: p}, nil