diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-04-27 09:45:42 +0000 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-04-27 10:32:39 +0000 |
commit | f99362e876873ebab5bcfa8a9e88e65200a9bac1 (patch) | |
tree | e26599591299f84e7001836694194d19a50356f4 /config/default.go | |
parent | f6c70e980d41066df51ce8cf63f2351911391e47 (diff) |
config: make listen config struct aligned with open-config model
have config/state container
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'config/default.go')
-rw-r--r-- | config/default.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/config/default.go b/config/default.go index 613b0880..e6402ff7 100644 --- a/config/default.go +++ b/config/default.go @@ -45,12 +45,12 @@ func SetDefaultConfigValues(v *viper.Viper, b *BgpConfigSet) error { } } - if b.Global.ListenConfig.Port == 0 { - b.Global.ListenConfig.Port = bgp.BGP_PORT + if b.Global.Config.Port == 0 { + b.Global.Config.Port = bgp.BGP_PORT } - if len(b.Global.ListenConfig.LocalAddressList) == 0 { - b.Global.ListenConfig.LocalAddressList = []string{"0.0.0.0", "::"} + if len(b.Global.Config.LocalAddressList) == 0 { + b.Global.Config.LocalAddressList = []string{"0.0.0.0", "::"} } for idx, server := range b.BmpServers { |