diff options
-rw-r--r-- | pkg/server/server.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg/server/server.go b/pkg/server/server.go index 3a7ab371..cd78f3fb 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -3258,8 +3258,10 @@ func (s *BgpServer) ListPolicyAssignment(ctx context.Context, r *api.ListPolicyA names := make([]string, 0, len(s.neighborMap)+1) if r.Name == "" { names = append(names, table.GLOBAL_RIB_NAME) - for name := range s.neighborMap { - names = append(names, name) + for name, peer := range s.neighborMap { + if peer.isRouteServerClient() { + names = append(names, name) + } } } else { names = append(names, r.Name) |