diff options
Diffstat (limited to 'config/default.go')
-rw-r--r-- | config/default.go | 4 |
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 |