diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-11-11 22:54:21 +0900 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-12-21 19:28:25 +0900 |
commit | 406efffa74eadb44826e4b464dc2fbabdddf72c4 (patch) | |
tree | 78ba4c1b69ed3272e76175c70b26b2839b93130d /gobgpd | |
parent | e71fb3a3ae6129573f50848f7af8e83eb8a4d7e2 (diff) |
*: add global listen port configuration
if port < 0, gobgpd won't listen on tcp:179
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'gobgpd')
-rw-r--r-- | gobgpd/main.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gobgpd/main.go b/gobgpd/main.go index de348021..f8632771 100644 --- a/gobgpd/main.go +++ b/gobgpd/main.go @@ -21,7 +21,6 @@ import ( "github.com/jessevdk/go-flags" "github.com/osrg/gobgp/config" ops "github.com/osrg/gobgp/openswitch" - "github.com/osrg/gobgp/packet" "github.com/osrg/gobgp/server" "io/ioutil" "log/syslog" @@ -152,7 +151,7 @@ func main() { configCh := make(chan config.BgpConfigSet) reloadCh := make(chan bool) - bgpServer := server.NewBgpServer(bgp.BGP_PORT) + bgpServer := server.NewBgpServer() if opts.Ops { m, err := ops.NewOpsConfigManager(bgpServer.GrpcReqCh) if err != nil { |