mirror of
https://github.com/osrg/gobgp.git
synced 2024-05-11 05:55:10 +00:00
config: avoid peer reset when only Config.Description is changed
Signed-off-by: ISHIDA Wataru <[email protected]>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user