From e0fb6684714f72ce09f1d883be59d75450bde15a Mon Sep 17 00:00:00 2001 From: Manuel de Brito Fontes Date: Wed, 23 Dec 2015 10:58:05 -0300 Subject: Update lib demo to fix compilation errors --- docs/sources/lib.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docs') 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 -- cgit v1.2.3