diff options
Diffstat (limited to 'internal/pkg/config/default.go')
-rw-r--r-- | internal/pkg/config/default.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/pkg/config/default.go b/internal/pkg/config/default.go index 13e1267c..9bec51be 100644 --- a/internal/pkg/config/default.go +++ b/internal/pkg/config/default.go @@ -349,7 +349,14 @@ func setDefaultConfigValuesWithViper(v *viper.Viper, b *BgpConfigSet) error { return err } + bmpSysPrefix := "Gobgp-R" for idx, server := range b.BmpServers { + if server.Config.SysName == "" { + server.Config.SysName = bmpSysPrefix + strconv.Itoa(idx) + } + if server.Config.SysDescr == "" { + server.Config.SysDescr = "Gobgp Version: master" + } if server.Config.Port == 0 { server.Config.Port = bmp.BMP_DEFAULT_PORT } |