From eda648181fa867a555cb7db6defc9a0c45ad0701 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Mon, 9 May 2016 08:24:05 +0000 Subject: 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 --- server/server.go | 8 ++++++++ 1 file changed, 8 insertions(+) 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{ -- cgit v1.2.3