diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-04-22 07:12:15 +0000 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-04-27 10:32:42 +0000 |
commit | 3075ae5df98c1f6de73fd33ab5900a81cec3845b (patch) | |
tree | 59c8648d5c8de425ac196ed2a0149260c97877c6 /config | |
parent | ec0d19acd5b738da2a4aa90e7da6f3c1a1a2844f (diff) |
config: avoid peer reset when only Config.Description is changed
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'config')
-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 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 } |