diff options
author | Eiichiro Watanabe <a16tochjp@gmail.com> | 2017-08-22 22:02:18 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-08-24 14:16:57 +0900 |
commit | 11b0b586805b42d4179255e78383c9795bd8c198 (patch) | |
tree | 2f3180d88e574c99cea1d86422aab56b4388a8a6 /config/default.go | |
parent | cf60921e28c846ba8a6012f2cd25b3850798a831 (diff) |
Fix incorrect default value of BMPMonitoringPolicy
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) |