From 3075ae5df98c1f6de73fd33ab5900a81cec3845b Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Fri, 22 Apr 2016 07:12:15 +0000 Subject: config: avoid peer reset when only Config.Description is changed Signed-off-by: ISHIDA Wataru --- config/default.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config/default.go') diff --git a/config/default.go b/config/default.go index e6402ff7..102621eb 100644 --- a/config/default.go +++ b/config/default.go @@ -139,6 +139,9 @@ func SetDefaultConfigValues(v *viper.Viper, b *BgpConfigSet) error { } } + n.State.Description = n.Config.Description + n.Config.Description = "" + if !vv.IsSet("neighbor.config.local-as") { n.Config.LocalAs = b.Global.Config.As } -- cgit v1.2.3