diff options
author | Hitoshi Irino <irino@sfc.wide.ad.jp> | 2018-10-21 15:20:17 +0900 |
---|---|---|
committer | Hitoshi Irino <irino@sfc.wide.ad.jp> | 2018-10-21 15:20:17 +0900 |
commit | 2bdb76f2dcf24b891f2b6327a57c31b26463b2dd (patch) | |
tree | 8ae082cd3227689466f3d80072ecb88f56f2b599 /internal/pkg/config | |
parent | 329c2d316efecfed0331e30114d7086aa58e247e (diff) |
Supporting Zebra API version 6 which is used in FRRouting version 6
Diffstat (limited to 'internal/pkg/config')
-rw-r--r-- | internal/pkg/config/default.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/pkg/config/default.go b/internal/pkg/config/default.go index 1f4105c7..31dd1b17 100644 --- a/internal/pkg/config/default.go +++ b/internal/pkg/config/default.go @@ -398,8 +398,8 @@ func setDefaultConfigValuesWithViper(v *viper.Viper, b *BgpConfigSet) error { } if b.Zebra.Config.Version < 2 { b.Zebra.Config.Version = 2 - } else if b.Zebra.Config.Version > 5 { - b.Zebra.Config.Version = 5 + } else if b.Zebra.Config.Version > 6 { + b.Zebra.Config.Version = 6 } if !v.IsSet("zebra.config.nexthop-trigger-enable") && !b.Zebra.Config.NexthopTriggerEnable && b.Zebra.Config.Version > 2 { b.Zebra.Config.NexthopTriggerEnable = true |