summaryrefslogtreecommitdiffhomepage
path: root/config/default.go
diff options
context:
space:
mode:
Diffstat (limited to 'config/default.go')
-rw-r--r--config/default.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/config/default.go b/config/default.go
index 11b62a71..0cc55680 100644
--- a/config/default.go
+++ b/config/default.go
@@ -40,6 +40,13 @@ func SetDefaultConfigValues(v *viper.Viper, b *Bgp) error {
b.Global.ListenConfig.Port = bgp.BGP_PORT
}
+ for idx, server := range b.BmpServers.BmpServerList {
+ if server.Config.Port == 0 {
+ server.Config.Port = bgp.BMP_DEFAULT_PORT
+ }
+ b.BmpServers.BmpServerList[idx] = server
+ }
+
if !v.IsSet("global.mplslabelrange.minlabel") {
b.Global.MplsLabelRange.MinLabel = DEFAULT_MPLS_LABEL_MIN
}