summaryrefslogtreecommitdiffhomepage
path: root/gobgpd/main.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-07-28 20:47:01 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-07-28 20:47:01 +0900
commitc3560d1224f7759455b6916843341b20355dbfe5 (patch)
treeb227d666143a6e7feade9267f4a993f189615824 /gobgpd/main.go
parent70251f7175f1b30a9ed58d240b7e04419c91d601 (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.go6
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 {