summaryrefslogtreecommitdiffhomepage
path: root/gobgpd
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-07-22 17:08:59 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-07-22 17:28:34 +0900
commit3343bcec3565da1aa40fa1aa1ecc6feee7e902f6 (patch)
treee1a3a5f8ece2e5ec57e2fb970463278a87594bef /gobgpd
parent5aec36b646e2a3c01434828c0f0cc6f3e8566578 (diff)
zebra client uses the new Watch API
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
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)