summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-05-09 08:24:05 +0000
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-05-09 08:24:19 +0000
commiteda648181fa867a555cb7db6defc9a0c45ad0701 (patch)
tree48b526e276bfd02792d4af1001bb90bfec1bf584
parent3ced192e5c5bda81290e4a13d17bedd66b36b439 (diff)
server: support timer re-configuration
timer re-configuration won't kill BGP session. new values will be used for next BGP session establishment. Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
-rw-r--r--server/server.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/server/server.go b/server/server.go
index 41e142fd..44831e3d 100644
--- a/server/server.go
+++ b/server/server.go
@@ -2409,6 +2409,14 @@ func (server *BgpServer) handleUpdateNeighbor(c *config.Neighbor) ([]*SenderMsg,
return msgs, policyUpdated, err
}
+ if !original.Timers.Config.Equal(&c.Timers.Config) {
+ log.WithFields(log.Fields{
+ "Topic": "Peer",
+ "Key": peer.ID(),
+ }).Info("update timer configuration")
+ peer.fsm.pConf.Timers.Config = c.Timers.Config
+ }
+
msgs, err := peer.updatePrefixLimitConfig(c.AfiSafis)
if err != nil {
log.WithFields(log.Fields{