diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-02-27 04:04:22 -0800 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-02-27 04:12:49 -0800 |
commit | aaa6004f5d9bba03091bf95550781bcc27dac1a4 (patch) | |
tree | 612ed7d97448f9f5f2374f701a5c431742083310 /docs | |
parent | a53d1945056b6c43c1de5dcaafc5ef92fcd33614 (diff) |
docs: lib.md: update gRPC API usage
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/sources/lib.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/sources/lib.md b/docs/sources/lib.md index f911fe6b..3856989e 100644 --- a/docs/sources/lib.md +++ b/docs/sources/lib.md @@ -64,7 +64,7 @@ func main() { // add routes path, _ := cmd.ParsePath(bgp.RF_IPv4_UC, []string{"10.0.0.0/24", "nexthop", "10.10.10.10"}) - req = gobgp.NewGrpcRequest(gobgp.REQ_MOD_PATH, "", bgp.RouteFamily(0), &api.ModPathArguments{ + req = gobgp.NewGrpcRequest(gobgp.REQ_MOD_PATHS, "", bgp.RouteFamily(0), &api.ModPathsArguments{ Resource: api.Resource_GLOBAL, Paths: []*api.Path{path}, }) |