diff options
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 060ef038..b5d9ecfb 100644 --- a/gobgpd/main.go +++ b/gobgpd/main.go @@ -220,8 +220,10 @@ func main() { if err := bgpServer.SetRpkiConfig(newConfig.RpkiServers); err != nil { log.Fatalf("failed to set rpki config: %s", err) } - if err := bgpServer.SetBmpConfig(newConfig.BmpServers); err != nil { - log.Fatalf("failed to set bmp config: %s", err) + for _, c := range newConfig.BmpServers { + if err := bgpServer.AddBmp(&c.Config); err != nil { + log.Fatalf("failed to set bmp config: %s", err) + } } if err := bgpServer.SetMrtConfig(newConfig.MrtDump); err != nil { log.Fatalf("failed to set mrt config: %s", err) |