config: avoid peer reset when only Config.Description is changed

Signed-off-by: ISHIDA Wataru <[email protected]>
This commit is contained in:
ISHIDA Wataru
2016-04-27 10:32:42 +00:00
parent ec0d19acd5
commit 3075ae5df9
+3
View File
@@ -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
}