summaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/config
diff options
context:
space:
mode:
authorHitoshi Irino <irino@sfc.wide.ad.jp>2018-10-21 15:20:17 +0900
committerHitoshi Irino <irino@sfc.wide.ad.jp>2018-10-21 15:20:17 +0900
commit2bdb76f2dcf24b891f2b6327a57c31b26463b2dd (patch)
tree8ae082cd3227689466f3d80072ecb88f56f2b599 /internal/pkg/config
parent329c2d316efecfed0331e30114d7086aa58e247e (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.go4
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