diff options
Diffstat (limited to 'config/default.go')
-rw-r--r-- | config/default.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/default.go b/config/default.go index 626c9ab8..a95b535b 100644 --- a/config/default.go +++ b/config/default.go @@ -252,6 +252,9 @@ 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 { + b.Zebra.Config.Version = 2 + } if !v.IsSet("zebra.config.nexthop-trigger-enable") && !b.Zebra.Config.NexthopTriggerEnable && b.Zebra.Config.Version > 2 { b.Zebra.Config.NexthopTriggerEnable = true } |