diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-08-16 03:47:03 +0000 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-08-16 03:47:03 +0000 |
commit | 0a9375a40e84a1bb83aafdaf8a164bdf29f1513f (patch) | |
tree | 32f9dfc359108bf89c35a5169da4c224d384f192 | |
parent | 477b035bf4c053980f6e43cf446847a63d4bb010 (diff) |
api: support address family filtering of MonitorRib API
the feature was somehow dropped
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
-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 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 { |