From f99362e876873ebab5bcfa8a9e88e65200a9bac1 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Wed, 27 Apr 2016 09:45:42 +0000 Subject: config: make listen config struct aligned with open-config model have config/state container Signed-off-by: ISHIDA Wataru --- config/default.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'config/default.go') 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 { -- cgit v1.2.3