summaryrefslogtreecommitdiffhomepage
path: root/gobgpd/main.go
diff options
context:
space:
mode:
authorWataru Ishida <ishida.wataru@lab.ntt.co.jp>2016-11-11 16:23:55 +0000
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-11-12 21:21:49 -0800
commit6d52e8c1e5d4de4dfea37656b50c71579343b5f7 (patch)
treec5f1b0201dc1017405b19325fd349aa33f34b54e /gobgpd/main.go
parentc463e12538943aab758fba793e1af24b18856e06 (diff)
ops: drop open switch support
Signed-off-by: Wataru Ishida <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'gobgpd/main.go')
-rw-r--r--gobgpd/main.go12
1 files changed, 1 insertions, 11 deletions
diff --git a/gobgpd/main.go b/gobgpd/main.go
index a92c837e..8ecc8877 100644
--- a/gobgpd/main.go
+++ b/gobgpd/main.go
@@ -22,7 +22,6 @@ import (
p "github.com/kr/pretty"
api "github.com/osrg/gobgp/api"
"github.com/osrg/gobgp/config"
- ops "github.com/osrg/gobgp/openswitch"
"github.com/osrg/gobgp/packet/bgp"
"github.com/osrg/gobgp/server"
"io/ioutil"
@@ -50,7 +49,6 @@ func main() {
Facility string `long:"syslog-facility" description:"specify syslog facility"`
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"`
GrpcHosts string `long:"api-hosts" description:"specify the hosts that gobgpd listens on" default:":50051"`
GracefulRestart bool `short:"r" long:"graceful-restart" description:"flag restart-state in graceful-restart capability"`
Dry bool `short:"d" long:"dry-run" description:"check configuration"`
@@ -187,15 +185,7 @@ func main() {
}
}()
- if opts.Ops {
- m, err := ops.NewOpsManager(opts.GrpcHosts)
- if err != nil {
- log.Errorf("Failed to start ops config manager: %s", err)
- os.Exit(1)
- }
- log.Info("Coordination with OpenSwitch")
- m.Serve()
- } else if opts.ConfigFile != "" {
+ if opts.ConfigFile != "" {
go config.ReadConfigfileServe(opts.ConfigFile, opts.ConfigType, configCh)
}