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 2b8ae0c8..c8138cef 100644
--- a/api/grpc_server.go
+++ b/api/grpc_server.go
@@ -300,7 +300,7 @@ func (s *Server) MonitorRib(arg *Table, stream GobgpApi_MonitorRibServer) error
sendPath := func(pathList []*table.Path) error {
dsts := make(map[string]*Destination)
for _, path := range pathList {
- if path == nil {
+ if path == nil || (arg.Family != 0 && bgp.RouteFamily(arg.Family) != path.GetRouteFamily()) {
continue
}
if dst, y := dsts[path.GetNlri().String()]; y {