diff options
Diffstat (limited to 'config')
-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 d2911036..ef3da7f1 100644 --- a/config/default.go +++ b/config/default.go @@ -233,7 +233,9 @@ func setDefaultConfigValuesWithViper(v *viper.Viper, b *BgpConfigSet) error { if len(list) > idx { vv.Set("neighbor", list[idx]) } - setDefaultNeighborConfigValuesWithViper(vv, &n, b.Global.Config.As) + if err := setDefaultNeighborConfigValuesWithViper(vv, &n, b.Global.Config.As); err != nil { + return err + } b.Neighbors[idx] = n } |