diff options
author | Manuel de Brito Fontes <aledbf@gmail.com> | 2015-12-23 10:58:05 -0300 |
---|---|---|
committer | Manuel de Brito Fontes <aledbf@gmail.com> | 2015-12-23 10:58:05 -0300 |
commit | e0fb6684714f72ce09f1d883be59d75450bde15a (patch) | |
tree | babac489c9b183762c814c9ea748bdb128eebe45 /docs/sources/lib.md | |
parent | 634c408903fffd5f4a13016cf29d23cb652cf3d0 (diff) |
Update lib demo to fix compilation errors
Diffstat (limited to 'docs/sources/lib.md')
-rw-r--r-- | docs/sources/lib.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/sources/lib.md b/docs/sources/lib.md index a8e55894..f911fe6b 100644 --- a/docs/sources/lib.md +++ b/docs/sources/lib.md @@ -25,16 +25,16 @@ func main() { // start grpc api server. this is not mandatory // but you will be able to use `gobgp` cmd with this. - g := gobgp.NewGrpcServer(gobgp.GRPC_PORT, s.GrpcReqCh) + g := gobgp.NewGrpcServer(50051, s.GrpcReqCh) go g.Serve() // global configuration req := gobgp.NewGrpcRequest(gobgp.REQ_MOD_GLOBAL_CONFIG, "", bgp.RouteFamily(0), &api.ModGlobalConfigArguments{ Operation: api.Operation_ADD, Global: &api.Global{ - As: 65003, - RouterId: "192.168.0.4", - Port: -1, // gobgp won't listen on tcp:179 + As: 65003, + RouterId: "192.168.0.4", + ListenPort: -1, // gobgp won't listen on tcp:179 }, }) s.GrpcReqCh <- req |