diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-08-26 17:29:38 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-08-26 17:29:38 +0900 |
commit | 982a5b448f5ba99033911cdcaeebeeb8c2ed81fa (patch) | |
tree | 43206c30e60d4b2bd65ead978d1d72de882e7e76 /server | |
parent | c8bb5752f6a08eb5d1aac9fd4d58571cf9d8e2f4 (diff) |
zebra: add grpc api
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server')
-rw-r--r-- | server/server.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/server/server.go b/server/server.go index d051aac3..1a42a447 100644 --- a/server/server.go +++ b/server/server.go @@ -875,7 +875,7 @@ func (s *BgpServer) StartCollector(c *config.CollectorConfig) (err error) { return err } -func (s *BgpServer) StartZebraClient(x *config.Zebra) (err error) { +func (s *BgpServer) StartZebraClient(c *config.ZebraConfig) (err error) { ch := make(chan struct{}) defer func() { <-ch }() @@ -885,8 +885,6 @@ func (s *BgpServer) StartZebraClient(x *config.Zebra) (err error) { if s.zclient != nil { err = fmt.Errorf("already connected to Zebra") } else { - c := x.Config - protos := make([]string, 0, len(c.RedistributeRouteTypeList)) for _, p := range c.RedistributeRouteTypeList { protos = append(protos, string(p)) |