diff options
Diffstat (limited to 'docs/sources')
-rw-r--r-- | docs/sources/lib.md | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/sources/lib.md b/docs/sources/lib.md index d5d0d299..a8c14d65 100644 --- a/docs/sources/lib.md +++ b/docs/sources/lib.md @@ -73,7 +73,9 @@ func main() { } // monitor new routes - req = gobgp.NewGrpcRequest(gobgp.REQ_MONITOR_GLOBAL_BEST_CHANGED, "", bgp.RF_IPv4_UC, nil) + req = gobgp.NewGrpcRequest(gobgp.REQ_MONITOR_RIB, "", bgp.RF_IPv4_UC, &api.Table{ + Type: api.Resource_GLOBAL, + }) s.GrpcReqCh <- req for res := range req.ResponseCh { p, _ := cmd.ApiStruct2Path(res.Data.(*api.Destination).Paths[0]) |