summaryrefslogtreecommitdiffhomepage
path: root/config/default.go
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2017-08-25 15:05:39 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-11-02 00:14:09 +0900
commitd2a34c964aa0a43afc488f1d4497e4cd51a8c15a (patch)
tree2c86b9b69e9db679ced84a5813bc6ebbae04805c /config/default.go
parent1dc56d5a724a394f5db5cb75e305e8da286c52dc (diff)
zclient: Enable to connect to FRRouting
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'config/default.go')
-rw-r--r--config/default.go4
1 files changed, 3 insertions, 1 deletions
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