diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-05-24 05:47:52 +0000 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-06-06 12:43:20 +0900 |
commit | aca6fd6ad4409b4cb63682bff3c79fca8ca2800d (patch) | |
tree | eb91718c87ddcdaa0d2133f3aaccfee6dbe7f7a8 /docs/sources/lib.md | |
parent | 10746e5f4b303aba553c2bb759afe3a8d4ffe3aa (diff) |
server: refactoring for monitorbestchanged api. use watcher infra
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'docs/sources/lib.md')
-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]) |