summaryrefslogtreecommitdiffhomepage
path: root/gobgpd
diff options
context:
space:
mode:
Diffstat (limited to 'gobgpd')
-rw-r--r--gobgpd/main.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/gobgpd/main.go b/gobgpd/main.go
index 67a0b2f4..060ef038 100644
--- a/gobgpd/main.go
+++ b/gobgpd/main.go
@@ -209,8 +209,10 @@ func main() {
if err := bgpServer.SetGlobalType(newConfig.Global); err != nil {
log.Fatalf("failed to set global config: %s", err)
}
- if err := bgpServer.SetZebraConfig(newConfig.Zebra); err != nil {
- log.Fatalf("failed to set zebra config: %s", err)
+ if newConfig.Zebra.Config.Enabled {
+ if err := bgpServer.StartZebraClient(&newConfig.Zebra); err != nil {
+ log.Fatalf("failed to set zebra config: %s", err)
+ }
}
if err := bgpServer.SetCollector(newConfig.Collector); err != nil {
log.Fatalf("failed to set collector config: %s", err)