summaryrefslogtreecommitdiffhomepage
path: root/config/default.go
diff options
context:
space:
mode:
Diffstat (limited to 'config/default.go')
-rw-r--r--config/default.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/default.go b/config/default.go
index 82a17446..c0764c44 100644
--- a/config/default.go
+++ b/config/default.go
@@ -39,11 +39,11 @@ func SetDefaultConfigValues(v *viper.Viper, b *Bgp) error {
b.Global.ListenConfig.Port = bgp.BGP_PORT
}
- for idx, server := range b.BmpServers {
+ for idx, server := range b.Global.BmpServers {
if server.Config.Port == 0 {
server.Config.Port = bgp.BMP_DEFAULT_PORT
}
- b.BmpServers[idx] = server
+ b.Global.BmpServers[idx] = server
}
if !v.IsSet("global.mpls-label-range.min-label") {