diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-12-30 20:50:27 +0900 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-01-09 22:51:23 +0900 |
commit | aff1c244ad0d88a814f2ce573800717ccd08b450 (patch) | |
tree | 711b432961c52c76a70cd76a980d00ad956c0d5b /config/default.go | |
parent | f4c07da88154dd4b21012576a4ceb205715f4b3e (diff) |
bmp: use watcher infra to implement bmp feature
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'config/default.go')
-rw-r--r-- | config/default.go | 4 |
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") { |