From d2a34c964aa0a43afc488f1d4497e4cd51a8c15a Mon Sep 17 00:00:00 2001 From: IWASE Yusuke Date: Fri, 25 Aug 2017 15:05:39 +0900 Subject: zclient: Enable to connect to FRRouting Signed-off-by: IWASE Yusuke --- config/default.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'config/default.go') diff --git a/config/default.go b/config/default.go index c1a38ab6..41bcbd40 100644 --- a/config/default.go +++ b/config/default.go @@ -381,8 +381,10 @@ func setDefaultConfigValuesWithViper(v *viper.Viper, b *BgpConfigSet) error { if b.Zebra.Config.Url == "" { b.Zebra.Config.Url = "unix:/var/run/quagga/zserv.api" } - if b.Zebra.Config.Version < 2 || 3 > b.Zebra.Config.Version { + if b.Zebra.Config.Version < 2 { b.Zebra.Config.Version = 2 + } else if b.Zebra.Config.Version > 4 { + b.Zebra.Config.Version = 4 } if !v.IsSet("zebra.config.nexthop-trigger-enable") && !b.Zebra.Config.NexthopTriggerEnable && b.Zebra.Config.Version > 2 { b.Zebra.Config.NexthopTriggerEnable = true -- cgit v1.2.3