From b19bbd415e8d33f01bcd407baece94ea1b81c957 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Sat, 23 Jan 2016 20:54:23 +0900 Subject: gobgpd: support graceful-restart restarting-speaker behavior use `-r` option to start gobgpd in restarting-speaker mode Signed-off-by: ISHIDA Wataru --- config/default.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'config/default.go') 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 } -- cgit v1.2.3