summaryrefslogtreecommitdiffhomepage
path: root/bgpd.go
diff options
context:
space:
mode:
Diffstat (limited to 'bgpd.go')
-rw-r--r--bgpd.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/bgpd.go b/bgpd.go
index 277349a7..1ba04fbc 100644
--- a/bgpd.go
+++ b/bgpd.go
@@ -18,6 +18,7 @@ package main
import (
"fmt"
"github.com/jessevdk/go-flags"
+ "github.com/osrg/gobgp/api"
"github.com/osrg/gobgp/config"
"github.com/osrg/gobgp/packet"
"github.com/osrg/gobgp/server"
@@ -54,6 +55,10 @@ func main() {
bgpServer := server.NewBgpServer(bgp.BGP_PORT)
go bgpServer.Serve()
+ // start Rest Server
+ restServer := api.NewRestServer(api.REST_PORT, bgpServer.RestReqCh)
+ go restServer.Serve()
+
var bgpConfig *config.BgpType = nil
for {
select {