summaryrefslogtreecommitdiffhomepage
path: root/gobgpd
diff options
context:
space:
mode:
Diffstat (limited to 'gobgpd')
-rw-r--r--gobgpd/main.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/gobgpd/main.go b/gobgpd/main.go
index ca90ece7..f886ea95 100644
--- a/gobgpd/main.go
+++ b/gobgpd/main.go
@@ -227,8 +227,13 @@ func main() {
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)
+ for _, c := range newConfig.MrtDump {
+ if len(c.FileName) == 0 {
+ continue
+ }
+ if err := bgpServer.EnableMrt(&c); err != nil {
+ log.Fatalf("failed to set mrt config: %s", err)
+ }
}
p := config.ConfigSetToRoutingPolicy(newConfig)
if err := bgpServer.UpdatePolicy(*p); err != nil {