diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-01-23 20:54:23 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-02-10 23:35:41 -0800 |
commit | b19bbd415e8d33f01bcd407baece94ea1b81c957 (patch) | |
tree | e2a2ebec25d13924dfc7411ad25759c951dd70f8 /config/default.go | |
parent | a207c90fe4544caa95d30ffaec5defee78ef6fd3 (diff) |
gobgpd: support graceful-restart restarting-speaker behavior
use `-r` option to start gobgpd in restarting-speaker mode
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'config/default.go')
-rw-r--r-- | config/default.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/config/default.go b/config/default.go index 1d29ec4d..fe7d547b 100644 --- a/config/default.go +++ b/config/default.go @@ -146,6 +146,13 @@ func SetDefaultConfigValues(v *viper.Viper, b *Bgp) error { // equal to the HOLDTIME carried in the OPEN. n.GracefulRestart.Config.RestartTime = uint16(n.Timers.Config.HoldTime) } + if !vv.IsSet("neighbor.graceful-restart.config.deferral-time") { + // RFC 4724 4.1. Procedures for the Restarting Speaker + // The value of this timer should be large + // enough, so as to provide all the peers of the Restarting Speaker with + // enough time to send all the routes to the Restarting Speaker + n.GracefulRestart.Config.DeferralTime = uint16(360) + } } b.Neighbors[idx] = n } |