diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-12-22 15:25:08 +0900 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-12-22 15:29:29 +0900 |
commit | c0e0aafa749f893d7b4f75a8dd7b93fea8153cdc (patch) | |
tree | d2945b296e97bf99126cf95c7829bd77a1ebb1f7 /gobgpd/main.go | |
parent | 406efffa74eadb44826e4b464dc2fbabdddf72c4 (diff) |
gobgpd/gobgp: change grcp port to 50051 from 8080
also add an option to change grpc port
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'gobgpd/main.go')
-rw-r--r-- | gobgpd/main.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gobgpd/main.go b/gobgpd/main.go index f8632771..50c12a96 100644 --- a/gobgpd/main.go +++ b/gobgpd/main.go @@ -46,6 +46,7 @@ func main() { DisableStdlog bool `long:"disable-stdlog" description:"disable standard logging"` CPUs int `long:"cpus" description:"specify the number of CPUs to be used"` Ops bool `long:"openswitch" description:"openswitch mode"` + GrpcPort int `long:"grpc-port" description:"grpc port" default:"50051"` } _, err := flags.Parse(&opts) if err != nil { @@ -166,7 +167,7 @@ func main() { go bgpServer.Serve() // start grpc Server - grpcServer := server.NewGrpcServer(server.GRPC_PORT, bgpServer.GrpcReqCh) + grpcServer := server.NewGrpcServer(opts.GrpcPort, bgpServer.GrpcReqCh) go grpcServer.Serve() var bgpConfig *config.Bgp = nil |