diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-07-28 20:47:01 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-07-28 20:47:01 +0900 |
commit | c3560d1224f7759455b6916843341b20355dbfe5 (patch) | |
tree | b227d666143a6e7feade9267f4a993f189615824 /gobgpd/main.go | |
parent | 70251f7175f1b30a9ed58d240b7e04419c91d601 (diff) |
move gRPC-related code for RPKI to grpc_server.go
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'gobgpd/main.go')
-rw-r--r-- | gobgpd/main.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gobgpd/main.go b/gobgpd/main.go index aaf038a2..4c083953 100644 --- a/gobgpd/main.go +++ b/gobgpd/main.go @@ -219,8 +219,10 @@ func main() { log.Fatalf("failed to set collector config: %s", err) } } - if err := bgpServer.SetRpkiConfig(newConfig.RpkiServers); err != nil { - log.Fatalf("failed to set rpki config: %s", err) + for _, c := range newConfig.RpkiServers { + if err := bgpServer.AddRpki(&c.Config); err != nil { + log.Fatalf("failed to set rpki config: %s", err) + } } for _, c := range newConfig.BmpServers { if err := bgpServer.AddBmp(&c.Config); err != nil { |