diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-05-09 08:24:05 +0000 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-05-09 08:24:19 +0000 |
commit | eda648181fa867a555cb7db6defc9a0c45ad0701 (patch) | |
tree | 48b526e276bfd02792d4af1001bb90bfec1bf584 /server | |
parent | 3ced192e5c5bda81290e4a13d17bedd66b36b439 (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>
Diffstat (limited to 'server')
-rw-r--r-- | server/server.go | 8 |
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{ |