summaryrefslogtreecommitdiffhomepage
path: root/gobgpd/main.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-07-22 22:22:08 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-07-22 17:28:38 +0900
commitf097981a33d107a6d31c4da0f25b90957f3d25fe (patch)
tree25ebf98379bb5eec7131500bb31221698107a04a /gobgpd/main.go
parent3343bcec3565da1aa40fa1aa1ecc6feee7e902f6 (diff)
bmp uses the new Watch API
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 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)