diff options
Diffstat (limited to 'internal/pkg/config')
-rw-r--r-- | internal/pkg/config/default.go | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/internal/pkg/config/default.go b/internal/pkg/config/default.go index 7727bf78..3d723cd9 100644 --- a/internal/pkg/config/default.go +++ b/internal/pkg/config/default.go @@ -421,16 +421,7 @@ func setDefaultConfigValuesWithViper(v *viper.Viper, b *BgpConfigSet) error { b.Zebra.Config.NexthopTriggerDelay = 5 } - //SoftwareName for Zebra - allowableZebraSoftwareName := []string{"", "quagga", "frr3", "frr4", "frr5", "frr6", "frr7", "frr7.1", "frr7.2", "frr7.3", "cumulus"} - isAllowable := false - for _, allowable := range allowableZebraSoftwareName { - if b.Zebra.Config.SoftwareName == allowable { - isAllowable = true - break - } - } - if !isAllowable { + if !zebra.IsAllowableSoftwareName(b.Zebra.Config.Version, b.Zebra.Config.SoftwareName) { b.Zebra.Config.SoftwareName = "" } |