diff options
Diffstat (limited to 'config/default.go')
-rw-r--r-- | config/default.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/default.go b/config/default.go index 91194284..810168e7 100644 --- a/config/default.go +++ b/config/default.go @@ -338,6 +338,9 @@ func setDefaultConfigValuesWithViper(v *viper.Viper, b *BgpConfigSet) error { if server.Config.Port == 0 { server.Config.Port = bmp.BMP_DEFAULT_PORT } + if server.Config.RouteMonitoringPolicy == "" { + server.Config.RouteMonitoringPolicy = BMP_ROUTE_MONITORING_POLICY_TYPE_PRE_POLICY + } // statistics-timeout is uint16 value and implicitly less than 65536 if server.Config.StatisticsTimeout != 0 && server.Config.StatisticsTimeout < 15 { return fmt.Errorf("too small statistics-timeout value: %d", server.Config.StatisticsTimeout) |